Skip to content

Instantly share code, notes, and snippets.

#include <SPI.h>
//-----------------------------------------------------------АДРЕСА РЕГИСТРОВ----------------------------------------------------------------------------------------------------------------
#define WAVEFORM 0x01
#define AENERGY 0x02
#define RSTENERGY 0x03
#define STATUS 0x04
#define RSTSTATUS 0x05
#define MODE 0x06
#define CFDIV 0x07
#include <SPI.h>
//-----------------------------------------------------------АДРЕСА РЕГИСТРОВ----------------------------------------------------------------------------------------------------------------
#define WAVEFORM 0x01
#define AENERGY 0x02
#define RSTENERGY 0x03
#define STATUS 0x04
#define RSTSTATUS 0x05
#define MODE 0x06
#define CFDIV 0x07
/*
* Copyright (c) 2010 by Cristian Maglie <c.maglie@arduino.cc>
* Copyright (c) 2014 by Paul Stoffregen <paul@pjrc.com> (Transaction API)
* Copyright (c) 2014 by Matthijs Kooijman <matthijs@stdin.nl> (SPISettings AVR)
* Copyright (c) 2014 by Andrew J. Kroll <xxxajk@gmail.com> (atomicity fixes)
* SPI Master library for arduino.
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of either the GNU General Public License version 2
* or the GNU Lesser General Public License version 2.1, both as
@Alexevs
Alexevs / SFR.h
Last active August 5, 2016 08:24
#ifndef SFR_H
#define SFR_H
//---АДРЕСА РЕГИСТРОВ---
#define WAVEFORM 0x01
#define AENERGY 0x02
#define RSTENERGY 0x03
#define STATUS 0x04
#define RSTSTATUS 0x05
#define MODE 0x06