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
- Committer:
- wataloh
- Date:
- 2016-12-20
- Revision:
- 0:20bce0dcc921
File content as of revision 0:20bce0dcc921:
#include "BitOrder.h" static const uint8_t uint8_treverse_lookup[] = { 0, 8, 4, 12, 2, 10, 6, 14,1, 9, 5, 13,3, 11, 7, 15 }; uint8_t BitOrder::flip(uint8_t in) { return (((uint8_treverse_lookup[(in & 0x0F)]) << 4) + uint8_treverse_lookup[((in & 0xF0) >> 4)]); }