BlakeCarmichael
Member
I am currently researching the process of moving from my Teensy 3.2 to an ATtiny 85. Do the libraries that are used in Teensy code seamlessly translate to the ATtiny?
For example, in my first program I am using the following libraries:
It seems that for the RF comms to work I will just need to change the txpin in the Radio Head header file. Is this correct?
And how do I know if the Snooze/Bounce libraries will work?
While we're at it: in other programs I am also using the libraries Wire, SPI, ClickEncoder, TimerOne, and EEPROM.
I will also need to add in a 16-bit ADC with I2C comms (https://www.adafruit.com/product/1085) since the ATtiny only has a 10-bit ADC.
So pin 5 and 7 of the ATtiny will be used for I2C.
The pins currently being used on the Teensy 3.2 for my first Teensy->ATtiny conversion are:
Thanks in advance,
Blake
For example, in my first program I am using the following libraries:
- Snooze
- Bounce
- RH_ASK - Radiohead for RF comms
It seems that for the RF comms to work I will just need to change the txpin in the Radio Head header file. Is this correct?
And how do I know if the Snooze/Bounce libraries will work?
While we're at it: in other programs I am also using the libraries Wire, SPI, ClickEncoder, TimerOne, and EEPROM.
I will also need to add in a 16-bit ADC with I2C comms (https://www.adafruit.com/product/1085) since the ATtiny only has a 10-bit ADC.
So pin 5 and 7 of the ATtiny will be used for I2C.
The pins currently being used on the Teensy 3.2 for my first Teensy->ATtiny conversion are:
- pin 2: button for waking up/putting to sleep (snooze)
- pin 12: RF transmitter (http://www.icstation.com/433mhz-transmitter-receiver-arduino-project-p-1402.html?aid=10
- pin 22: Oxygen sensor (7-12 mV output)
- Vin
- AGND
Thanks in advance,
Blake