Hackuarium / simple-spectro

Very cheap, autonomous and precise spectrophotometer for DIY biology and chemistry.
https://hackuarium.github.io/simple-spectro/.
42 stars 15 forks source link

control power of temperature and tsl235 #43

Closed lpatiny closed 6 years ago

lpatiny commented 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

lpatiny commented 6 years ago

We only control the TSL237 because the temperature is expected to consume in sleep mode less that 10 micro amps. Closed by b39cae573336c6975eb039dbab3644d2ac690f92