📅  最后修改于: 2022-03-11 14:44:51.411000             🧑  作者: Mango
struct myBits{ //struct uses only 2 bytes of memory
uint16_t ison:1; //1 bit
uint16_t address:4 //4 bits
uint16_t locked:3 //3 bits
uint16_t date:5 //5 bits
// ----- +
// 13 bits
};