Cant get serial.print() to work on attiny3224 #1041
Replies: 1 comment
-
Closing this thread. We have an issue on this and it's best to keep everythjing in one place/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Im using this code:
`#include "Arduino.h"
void setup(){
Serial.begin(9600);
}
void loop(){
Serial.print("Test");
delay(1000);
}`
The serial pins PB2 and PB3 are connected to an oscilloscope.
Both pins sit at 5v with no activity at all. What could be wrong?
megaTinyCore version 2.6.7
Im using platformio in vscode with this platformio.ini:
`[platformio]
; Default build target
default_envs = Upload_UPDI
; Parameters used for all environments
[env]
platform = atmelmegaavr
framework = arduino
; Chip in use
board = ATtiny3224
; Clock frequency in [Hz]
board_build.f_cpu = 16000000L
; Oscillator type (internal or external)
board_hardware.oscillator = internal
; Unflag build flags
build_unflags =
; Extra build flags
build_flags =
; Monitor port is auto detected. Override here
;monitor_port =
; Serial monitor baud rate
monitor_speed = 9600
; Run the following command to upload with this environment
; pio run -e Upload_UPDI -t upload
[env:Upload_UPDI]
; Upload protocol for UPDI upload
upload_protocol = jtag2updi
;upload_port = COMx
upload_flags =
; run the following command to set fuses
; pio run -t fuses -e set_fuses
[env:set_fuses]
; Upload protocol for used to set fuses
upload_protocol = ${env:Upload_UPDI.upload_protocol}
upload_flags =
; Hardware settings
board_hardware.bod = 2.7v
board_hardware.eesave = yes
board_hardware.updipin = updi
`
Beta Was this translation helpful? Give feedback.
All reactions