Closed lpatiny closed 6 years ago
Using HWB port
Manipulate the PORT, PIN, and DDR (Data Direction Register) directly:
PORTE |= 0x04; // Set PE2 PORTE &= 0xFB; // Clear PE2 PINE = 0x04; // Toggle PE2 val = !!(PINE & 0x04); // digitalRead PE2 DDRE |= 0x04; // pinMode PE2 OUTPUT DDRE &= 0xFB; // pinMode PE2 INPUT
We only control the TSL237 because the temperature is expected to consume in sleep mode less that 10 micro amps. Closed by b39cae573336c6975eb039dbab3644d2ac690f92
Using HWB port
Manipulate the PORT, PIN, and DDR (Data Direction Register) directly:
PORTE |= 0x04; // Set PE2 PORTE &= 0xFB; // Clear PE2 PINE = 0x04; // Toggle PE2 val = !!(PINE & 0x04); // digitalRead PE2 DDRE |= 0x04; // pinMode PE2 OUTPUT DDRE &= 0xFB; // pinMode PE2 INPUT