![]() Volatile boolean f_setup= false //Flag when open pins and set starting time, false is not done Volatile boolean f_done = false //Flag when open state is done, false is not done Volatile boolean f_wdt = true //Flag to open MOSFET, true is open ![]() around 40 seconds to connect & upload the data Long const waitTime = 90000 //How long the mosfet is open, the arduino takes for me atm. Int const readGate = 1 //PIN for MOSFET GATE Int const pinGate = 0 //PIN for MOSFET GATE #define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit)) ![]() #define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) In the project you linked to, the ATTiny needs to be programmed with this codeā¦ HannesOberreiter/bScale/blob/master/attiny/attiny.ino #include Yes, you program it with the code you require to perform the functionality you require. Attiny is a chip that works indepentently?
0 Comments
Leave a Reply. |