11.07.2015 Views

Jere Knuuttila TerveTaas – kotiautomaatiota hyödyntävä kotona ...

Jere Knuuttila TerveTaas – kotiautomaatiota hyödyntävä kotona ...

Jere Knuuttila TerveTaas – kotiautomaatiota hyödyntävä kotona ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ostnumbers start going negative when rolling backwards belowzero.%p rim position, at the moment in encoder pulses, zero isthe position at reset, full rotation is 12033 pulses. See also ->gp104%s rolling speed (pulses/100ms)%v main battery voltage ADC%b backup battery voltage ADC%c main current ADC%l light sensor ADC%g gyro ADCAn example: "dfC%CP%PR%R" which is also the default andproduces a data string message like "dC431P34R50".Send data once.Stop data sending.Start data sending at times ten milliseconds. See D (capital 'D') Display Commands, after 'D' can follow:0 (zero) Display off (sleep mode).1 Display on.c…Cgcgl,imt@,Command, send following comma-separated hex-formattedbytes to display, the first one is a command, any followingbytes are parameters.(capital 'C') Clear screen (graphics and text).Clear graphics layer.Put logo bitmap on screen at coordinates ,. Origin is topleft, is horizontal 0..239, is vertical 0..127. Bitmap'sorigin is its top left corner.Initialize display. Sets all display parameters correctly andclears display, done automatically at reset, so normally notneeded separately.Display mode, bits of the decimal define behaviour:bit0: 0:freeform display, 1:data displaySet text cursor at square ,. Origin is top left, ishorizontal 0..29, is vertical 0..15.tc Clear text layer and put text cursor at 0,0.tbBackspace: set text cursor one position back and clear characterunder it.tp… Print text. The characters to be printed (…) are taken to the endof message so this is the last command in message. The textcursor is left to the end of the text.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!