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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers BitOrder.cpp Source File

BitOrder.cpp

00001 #include "BitOrder.h"
00002 
00003 static const uint8_t uint8_treverse_lookup[] = { 0, 8,  4, 12, 2, 10, 6, 14,1, 9, 5, 13,3, 11, 7, 15 };
00004 
00005 uint8_t BitOrder::flip(uint8_t in)
00006 {
00007     return (((uint8_treverse_lookup[(in & 0x0F)]) << 4) + uint8_treverse_lookup[((in & 0xF0) >> 4)]);
00008 }
00009     
00010