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/BitOrder.cpp@23:e4d2316383a1, 2017-10-18 (annotated)
- Committer:
- Rhyme
- Date:
- Wed Oct 18 00:31:13 2017 +0000
- Revision:
- 23:e4d2316383a1
- Parent:
- 0:20bce0dcc921
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 | 0:20bce0dcc921 | 1 | #include "BitOrder.h" |
wataloh | 0:20bce0dcc921 | 2 | |
wataloh | 0:20bce0dcc921 | 3 | static const uint8_t uint8_treverse_lookup[] = { 0, 8, 4, 12, 2, 10, 6, 14,1, 9, 5, 13,3, 11, 7, 15 }; |
wataloh | 0:20bce0dcc921 | 4 | |
wataloh | 0:20bce0dcc921 | 5 | uint8_t BitOrder::flip(uint8_t in) |
wataloh | 0:20bce0dcc921 | 6 | { |
wataloh | 0:20bce0dcc921 | 7 | return (((uint8_treverse_lookup[(in & 0x0F)]) << 4) + uint8_treverse_lookup[((in & 0xF0) >> 4)]); |
wataloh | 0:20bce0dcc921 | 8 | } |
wataloh | 0:20bce0dcc921 | 9 | |
wataloh | 0:20bce0dcc921 | 10 |