- Timestamp:
- Sep 10, 2019, 11:25:01 AM (7 years ago)
- Location:
- trunk/Arduino/libraries/Adafruit_Circuit_Playground/utility
- Files:
-
- 3 edited
-
Adafruit_CPlay_LIS3DH.h (modified) (1 diff)
-
Adafruit_CPlay_NeoPixel.cpp (modified) (2 diffs)
-
talkie.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Arduino/libraries/Adafruit_Circuit_Playground/utility/Adafruit_CPlay_LIS3DH.h
r3 r20 180 180 uint8_t spixfer(uint8_t x = 0xFF); 181 181 182 183 int32_t _sensorID;184 int8_t _i2caddr;185 186 182 // SPI 187 183 int8_t _cs, _mosi, _miso, _sck; 184 185 int8_t _i2caddr; 186 int32_t _sensorID; 188 187 }; 189 188 -
trunk/Arduino/libraries/Adafruit_Circuit_Playground/utility/Adafruit_CPlay_NeoPixel.cpp
r3 r20 713 713 // table (in flash memory) holding an 8-bit unsigned sine wave (0-255). 714 714 static const int _SBASE_ = __COUNTER__ + 1; // Index of 1st __COUNTER__ below 715 #define _S1_ ( sin((__COUNTER__ - _SBASE_) / 128.0 * M_PI) + 1.0) * 127.5 + 0.5,715 #define _S1_ (uint8_t) ((sin((__COUNTER__ - _SBASE_) / 128.0 * M_PI) + 1.0) * 127.5 + 0.5), 716 716 #define _S2_ _S1_ _S1_ _S1_ _S1_ _S1_ _S1_ _S1_ _S1_ // Expands to 8 items 717 717 #define _S3_ _S2_ _S2_ _S2_ _S2_ _S2_ _S2_ _S2_ _S2_ // Expands to 64 items … … 721 721 #define _GAMMA_ 2.6 722 722 static const int _GBASE_ = __COUNTER__ + 1; // Index of 1st __COUNTER__ below 723 #define _G1_ pow((__COUNTER__ - _GBASE_) / 255.0, _GAMMA_) * 255.0 + 0.5,723 #define _G1_ (uint8_t) (pow((__COUNTER__ - _GBASE_) / 255.0, _GAMMA_) * 255.0 + 0.5), 724 724 #define _G2_ _G1_ _G1_ _G1_ _G1_ _G1_ _G1_ _G1_ _G1_ // Expands to 8 items 725 725 #define _G3_ _G2_ _G2_ _G2_ _G2_ _G2_ _G2_ _G2_ _G2_ // Expands to 64 items -
trunk/Arduino/libraries/Adafruit_Circuit_Playground/utility/talkie.cpp
r3 r20 9 9 #define USEC ((1000000 + (FS / 2)) / FS) // Sample period (microseconds) 10 10 11 static const int16_t PROGMEM11 static const uint16_t PROGMEM 12 12 tmsK1[] = {0x82C0,0x8380,0x83C0,0x8440,0x84C0,0x8540,0x8600,0x8780, 13 13 0x8880,0x8980,0x8AC0,0x8C00,0x8D40,0x8F00,0x90C0,0x92C0, … … 19 19 0x69C0,0x6CC0,0x6F80,0x71C0,0x73C0,0x7580,0x7700,0x7E80}; 20 20 21 static const int8_t PROGMEM21 static const uint8_t PROGMEM 22 22 tmsK3[] = {0x92,0x9F,0xAD,0xBA,0xC8,0xD5,0xE3,0xF0, 23 23 0xFE,0x0B,0x19,0x26,0x34,0x41,0x4F,0x5C},
Note: See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/trac/Paradigma/chrome/site/paradigma.png)