I'm trying to use my Arduino Uno as an ISP to program an ATTiny85 and at the same time check my board by using the SoftwareSerial library to output the values I'm getting from my sensor.
Is this actually possible? Or does it require 2 different setups? Because I found a lot of tutorials and threads about one or the other, but never both. Which I find odd because once you send your program to the chip you might want to test it as well (or debug it).
Many thanks for your help and input! :)
1 Answer 1
I'm not really sure, but in the Arduino ISP example there is an if that looks if the ISP is in program-mode. You could try adding in the else statement of that if the Software Serial part.
#include <SoftwareSerial.h> char anyChar; void setup(){ Serial.begin(9600); //to serial monitor Serial1.begin(9600); //connected to Attiny (RX to tx and TX to rx) } void loop(){ if(Serial1.available() >0) { anyChar = Serial1.read(); Serial.print(anyChar); } }