Showing integers value on LCD display.

Discuss development of drivers for external hardware and components, such as LCD screens, sensors, motor drivers, etc.
Target audience: Users and developers of drivers.
Post Reply
Martanas
Posts: 11
Joined: Sat Dec 11, 2021 1:27 pm

Showing integers value on LCD display.

Post by Martanas » Sun Dec 19, 2021 12:22 pm

Hello there,
Im trying to show int's value on LCD screen but i always get this error:

Code: Select all

TypeError: 'int' object isn't iterable
Is here some way to convert or sth. the int so i can show the value on LCD?

Thanks and cheers.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Showing integers value on LCD display.

Post by Roberthh » Sun Dec 19, 2021 2:06 pm

str,(n) creates a string of object n.

Martanas
Posts: 11
Joined: Sat Dec 11, 2021 1:27 pm

Re: Showing integers value on LCD display.

Post by Martanas » Sun Dec 19, 2021 2:11 pm

Oh, you saved me again. Thanks! And by the way, i've solved that previous problem with I2C. :D

Post Reply