Ignore:
Timestamp:
Sep 10, 2019, 11:25:01 AM (7 years ago)
Author:
markus
Message:

Updated Arduino libraries

Location:
trunk/Arduino/libraries/Adafruit_Circuit_Playground/utility
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Arduino/libraries/Adafruit_Circuit_Playground/utility/Adafruit_CPlay_LIS3DH.h

    r3 r20  
    180180  uint8_t spixfer(uint8_t x = 0xFF);
    181181
    182 
    183   int32_t _sensorID;
    184   int8_t  _i2caddr;
    185 
    186182  // SPI
    187183  int8_t _cs, _mosi, _miso, _sck;
     184
     185  int8_t  _i2caddr;
     186  int32_t _sensorID;
    188187};
    189188
  • trunk/Arduino/libraries/Adafruit_Circuit_Playground/utility/Adafruit_CPlay_NeoPixel.cpp

    r3 r20  
    713713// table (in flash memory) holding an 8-bit unsigned sine wave (0-255).
    714714static 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),
    716716#define _S2_ _S1_ _S1_ _S1_ _S1_ _S1_ _S1_ _S1_ _S1_ // Expands to 8 items
    717717#define _S3_ _S2_ _S2_ _S2_ _S2_ _S2_ _S2_ _S2_ _S2_ // Expands to 64 items
    … …  
    721721#define _GAMMA_ 2.6
    722722static 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),
    724724#define _G2_ _G1_ _G1_ _G1_ _G1_ _G1_ _G1_ _G1_ _G1_ // Expands to 8 items
    725725#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  
    99#define USEC  ((1000000 + (FS / 2)) / FS) // Sample period (microseconds)
    1010
    11 static const int16_t PROGMEM
     11static const uint16_t PROGMEM
    1212  tmsK1[]     = {0x82C0,0x8380,0x83C0,0x8440,0x84C0,0x8540,0x8600,0x8780,
    1313                 0x8880,0x8980,0x8AC0,0x8C00,0x8D40,0x8F00,0x90C0,0x92C0,
    … …  
    1919                 0x69C0,0x6CC0,0x6F80,0x71C0,0x73C0,0x7580,0x7700,0x7E80};
    2020
    21 static const int8_t PROGMEM
     21static const uint8_t PROGMEM
    2222  tmsK3[]     = {0x92,0x9F,0xAD,0xBA,0xC8,0xD5,0xE3,0xF0,
    2323                 0xFE,0x0B,0x19,0x26,0x34,0x41,0x4F,0x5C},
Note: See TracChangeset for help on using the changeset viewer.