Jan-07-2021, 04:14 AM
Hi
doing a basic read and display exercise.
Does anyone know how to do a basic print data from arduino onto
Tkinter with python?
(i dont!! lol)
ive looked everywhere on the web and cant find a source for this most are doing lots more and more stuff breaks..
with my basic python code i can read the arduino measurements.
super minamalist
doing a basic read and display exercise.
Does anyone know how to do a basic print data from arduino onto
Tkinter with python?
(i dont!! lol)
ive looked everywhere on the web and cant find a source for this most are doing lots more and more stuff breaks..
with my basic python code i can read the arduino measurements.
super minamalist
import serial ser = serial.Serial('/dev/ttyACM0', baudrate = 9600, timeout=1) while 1: arduinoData = ser.readline().decode('ascii') print(arduinoData)This gives me no window
import serial from tkinter import * from time import sleep ser = serial.Serial('/dev/ttyACM0', baudrate = 9600, timeout=1) values = [] root = Tk() root.geometry('600x200') cnt=0 var = StringVar() e = Entry(root,width = 35, textvariable = var ,borderwidth = 5) e.grid(row = 0, column = 0, columnspan = 3,padx = 10,pady = 10) while 1: arduinoData = ser.readline().decode('ascii') print(arduinoData) var.set('My Var') root.mainloop()