You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{µbit_display_scroll_obj, "scroll(s) -- scroll the string 's' from left to right on the display.\nscroll(s, i) -- scroll string 's' with delay 'i' between characters.\n"},
108
108
{µbit_display_clear_obj, "clear() -- clear the display.\n"},
109
109
{µbit_display_animate_obj, "animate(img, delay, stride, start=0, async=False, repeat=False) -- animate\n image 'img' with 'delay' milliseconds and 'stride' pixels offset between\n frames. Optional: 'start' offset from left hand side, 'async' to run in the\n background, 'repeat' to loop the animation.\n"},
110
-
{µbit_display_set_brightness_obj, "set_brightness(b) -- set the brightness 'b' of the display between 0..255.\n See also set_display_mode(n).\n"},
111
-
{µbit_display_set_display_mode_obj, "set_display_mode(i) -- set pixel display mode to: 0 (on/off) or 1 (levels of\n brightness between 0..255). See also set_brightness(b) and\n set_pixel(x, y, i).\n"},
112
-
{µbit_image_obj, "A toolbox of code to work with the image shown on the device's 5x5 display.\n"},
113
-
{µbit_image_set_pixel_obj, "set_pixel(x, y, i) -- set the pixel at position x, y to brightness i.\n"},
110
+
{µbit_display_get_pixel_obj, "get_brightness(x, y) -- gets the brightness of the display pixel (x,y).\n"},
111
+
{µbit_display_get_pixel_raw_obj, "get_brightness(x, y) -- gets the raw value (a value between 0 and 255) of the display pixel (x,y).\n"},
112
+
{µbit_display_set_pixel_obj, "set_brightness(x, y, b) -- sets the brightness 'b' of the display pixel (x,y).\n"},
113
+
{µbit_display_set_pixel_raw_obj, "set_brightness_raw(x, y, r) -- sets the raw value 'r' (a value between 0 and 255) of the display pixel (x,y).\n"},
114
114
{µbit_p0_obj, "Represents pin 0 on the gold edge connector.\n"},
115
115
{µbit_p1_obj, "Represents pin 1 on the gold edge connector.\n"},
116
116
{µbit_p2_obj, "Represents pin 2 on the gold edge connector.\n"},
0 commit comments