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
util/RTC_Handler.h@23:e4d2316383a1, 2017-10-18 (annotated)
- Committer:
- Rhyme
- Date:
- Wed Oct 18 00:31:13 2017 +0000
- Revision:
- 23:e4d2316383a1
- Parent:
- 2:dfe671e31221
pwm period is now 200us from default 20ms; veml6040->setCOLORCOnf is now AF_BIT | TRIG_BIT from 0x00;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wataloh | 2:dfe671e31221 | 1 | #ifndef _RTC8564NB_WRAPPER_H_ |
wataloh | 2:dfe671e31221 | 2 | #define _RTC8564NB_WRAPPER_H_ |
wataloh | 2:dfe671e31221 | 3 | |
wataloh | 2:dfe671e31221 | 4 | #include "mbed.h" |
wataloh | 2:dfe671e31221 | 5 | |
wataloh | 2:dfe671e31221 | 6 | #if defined (TARGET_KL25Z) |
wataloh | 2:dfe671e31221 | 7 | |
wataloh | 2:dfe671e31221 | 8 | //RTC8564NB |
wataloh | 2:dfe671e31221 | 9 | |
wataloh | 2:dfe671e31221 | 10 | class RTC_Handler |
wataloh | 2:dfe671e31221 | 11 | { |
wataloh | 2:dfe671e31221 | 12 | I2C i2c; |
wataloh | 2:dfe671e31221 | 13 | char read(char address); |
wataloh | 2:dfe671e31221 | 14 | void write(char address, char value); |
wataloh | 2:dfe671e31221 | 15 | RTC_Handler(); |
wataloh | 2:dfe671e31221 | 16 | public: |
wataloh | 2:dfe671e31221 | 17 | static RTC_Handler* getInstance(); |
wataloh | 2:dfe671e31221 | 18 | void setUTC(time_t t); |
wataloh | 2:dfe671e31221 | 19 | void set( |
wataloh | 2:dfe671e31221 | 20 | char y[3], char m[3], char d[3], char h[3], char min[3], char s[3]); |
wataloh | 2:dfe671e31221 | 21 | time_t getUTC(); |
wataloh | 2:dfe671e31221 | 22 | }; |
wataloh | 2:dfe671e31221 | 23 | |
wataloh | 2:dfe671e31221 | 24 | #elif defined(TARGET_TEENSY3_1) |
wataloh | 2:dfe671e31221 | 25 | |
wataloh | 2:dfe671e31221 | 26 | // VT-200-F |
wataloh | 2:dfe671e31221 | 27 | |
wataloh | 2:dfe671e31221 | 28 | class RTC_Handler |
wataloh | 2:dfe671e31221 | 29 | { |
wataloh | 2:dfe671e31221 | 30 | RTC_Handler(); |
wataloh | 2:dfe671e31221 | 31 | public: |
wataloh | 2:dfe671e31221 | 32 | static RTC_Handler* getInstance(); |
wataloh | 2:dfe671e31221 | 33 | void setUTC(time_t t); |
wataloh | 2:dfe671e31221 | 34 | time_t getUTC(); |
wataloh | 2:dfe671e31221 | 35 | }; |
wataloh | 2:dfe671e31221 | 36 | |
wataloh | 2:dfe671e31221 | 37 | #endif |
wataloh | 2:dfe671e31221 | 38 | |
wataloh | 2:dfe671e31221 | 39 | #define RTC_GET_UTC(T) T = RTC_Handler::getInstance()->getUTC() |
wataloh | 2:dfe671e31221 | 40 | |
wataloh | 2:dfe671e31221 | 41 | #endif //_RTC8564NB_WRAPPER_H_ |