[Microbit-Python] some questions (and where should I ask them normally?)

Larry Hastings larry at hastings.org
Tue Sep 22 23:29:26 CEST 2015



On 09/22/2015 10:17 PM, Mariia Koroliuk wrote:
> 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?)

I believe that's the initializer for the constructor.  You need to make 
an Image object.
chess = microbit.Image(CHESS)
microbit.display.print(chess)

Image might be inside microbit.display, I'm not sure.


> 2) How do I control the brightness of one pixel? Something like
>
> microbit.display.set_brightness (3,3,200)?
>

The LEDs are either on or off.  No brightness control.


//arry/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/mailman/private/microbit/attachments/20150922/9f5e97c6/attachment.html>


More information about the Microbit mailing list