pwm period is now 200us instead of the default 20ms veml6040 config is now AF_BIT | TRIG_BIT

Dependencies:   mbed MMA8451Q USBDevice WakeUp vt100

Fork of afero_node_suntory_2017_06_15 by Orefatoi

Committer:
Rhyme
Date:
Wed Oct 18 00:31:13 2017 +0000
Revision:
23:e4d2316383a1
Parent:
1:b2a9a6f2c30e
pwm period is now 200us from default 20ms; veml6040->setCOLORCOnf is now AF_BIT | TRIG_BIT from 0x00;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wataloh 0:20bce0dcc921 1 #ifndef _MBEDSPI_H_
wataloh 0:20bce0dcc921 2 #define _MBEDSPI_H_
wataloh 0:20bce0dcc921 3
wataloh 0:20bce0dcc921 4 #include "mbed.h"
wataloh 0:20bce0dcc921 5 #include "afSPI.h"
wataloh 1:b2a9a6f2c30e 6 #include "Preferences.hpp"
wataloh 0:20bce0dcc921 7
wataloh 0:20bce0dcc921 8 class mbedSPI : public afSPI {
wataloh 0:20bce0dcc921 9 public:
wataloh 0:20bce0dcc921 10 mbedSPI();
wataloh 0:20bce0dcc921 11 virtual void begin();
wataloh 0:20bce0dcc921 12 virtual void beginSPI();
wataloh 0:20bce0dcc921 13 virtual void endSPI();
wataloh 0:20bce0dcc921 14 virtual void transfer(char *bytes,int len);
wataloh 0:20bce0dcc921 15 private:
wataloh 0:20bce0dcc921 16 SPI spi;
wataloh 0:20bce0dcc921 17 DigitalOut cs;
wataloh 0:20bce0dcc921 18 };
wataloh 0:20bce0dcc921 19
wataloh 0:20bce0dcc921 20 #endif //_MBEDSPI_H_