I have a Micropython program and i have a question about one piece of code. This code is no different from regular Python, it doesn't need specific micropython libraries.
Question itself:
Funсtion 'oled.text' takes three parameters. One is string and two other are coordinates(int). How do I transfer values from list so they become parameters? Should i create 'for' cycle inside the function? If the answer is yes, how should i do it?
Sorry for my English, it not my native language
x = 6
list = {
('bad', 0, 0),
('good', 10, 10),
('ugly', 20, 20),
('bullets:', 5, 30),
(str(x), 70, 30)
}
for i in list:
oled.text(i[0], i[1], i[2])