[Microbit-Python] some questions (and where should I ask them normally?)
Mariia Koroliuk
maria.korolyuk at gmail.com
Tue Sep 22 23:17:58 CEST 2015
Hello,
I hope this is a right way to ask :) Please tell me how to do it properly!
Is there come conversation somewhere with general queries?
1) How does the creating new Image work? For example, I want to define
CHESS='1,0,1,0,1 \n 0,1,0,1,0 \n 1,0,1,0,1 \n 0,1,0,1,0 \n 1,0,1,0,1 ' (I
think this is the form was discussed?)
For builded images, it would be
microbit.display.print(microbit.Image.YES)
But then I would try microbit.display.print(CHESS)
which obviously print it as a string :)
I tried to do something like
microbit.Image.CHESS='1,0,1,0,1 \n 0,1,0,1,0 \n 1,0,1,0,1 \n 0,1,0,1,0 \n
1,0,1,0,1 '
which doesn't work too :(
(I can print it in the loop through microbit.display.image.set_pixel_value
but it is quite stupid)
I guess it would be nice for kids to have an option to print an image they
define.
2) How do I control the brightness of one pixel? Something like
microbit.display.set_brightness (3,3,200)?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/mailman/private/microbit/attachments/20150922/65df4216/attachment.html>
More information about the Microbit
mailing list