Polebridge makes the BBC: http://www.bbc.com/travel/story/20210215-welcome-to-polebridge-one-of-the-us-last-frontiers
A blog by Josh Cogliati
Tuesday, February 16, 2021
Polebridge Montana makes the BBC
Wednesday, January 20, 2021
Sunday, January 17, 2021
Equifax doesn't actually send yearly credit reports
Another comment is that it would be better for consumers if the law just required sending a credit report every year instead of every 365 days.
Friday, December 4, 2020
circuitpython example with text
Now with some text as well (and I grant this python code to the public domain as well.)
import time import board import displayio import digitalio import vectorio import gamepadshift import terminalio BUTTON_LEFT = 128 BUTTON_UP = 64 BUTTON_DOWN = 32 BUTTON_RIGHT = 16 BUTTON_SELECT = 8 BUTTON_START = 4 BUTTON_A = 2 BUTTON_B = 1 print('About to begin.') for i in range(3,0,-1): print(i) time.sleep(0.2) circle = vectorio.Circle(10) circle2 = vectorio.Circle(6) display = board.DISPLAY palette = displayio.Palette(2) palette[0] = 0x000000 palette[1] = 0xFFFFFF palette.make_transparent(0) def get_char_tile(c, x, y): g = terminalio.FONT.get_glyph(ord(c)) tile = displayio.TileGrid(g.bitmap, pixel_shader=palette, tile_width=g.width, tile_height=g.height, default_tile=g.tile_index, x=x, y=y) return tile def get_string_group(s, x, y): text_w, text_h = terminalio.FONT.get_bounding_box() group = displayio.Group(max_size=len(s)) for i, c in enumerate(s): group.append(get_char_tile(c, x+text_w*i, y)) return group palette2 = displayio.Palette(2) palette2[0] = 0xFF0000 palette2[1] = 0x0000FF palette2.make_transparent(0) vect = vectorio.VectorShape(shape=circle, pixel_shader=palette) vect2 = vectorio.VectorShape(shape=circle2, pixel_shader=palette2, x=5, y=-5) s = get_string_group("Hey World!",15,0) vect3 = vectorio.VectorShape(shape=vectorio.Rectangle(2, 10), pixel_shader=palette2) move_group = displayio.Group() move_group.append(vect) move_group.append(vect2) group = displayio.Group() group.append(move_group) group.append(s) group.append(vect3) display.show(group) #display.show(group2) group.x = 20 group.y = 20 pad = gamepadshift.GamePadShift(digitalio.DigitalInOut(board.BUTTON_CLOCK), digitalio.DigitalInOut(board.BUTTON_OUT), digitalio.DigitalInOut(board.BUTTON_LATCH)) button = 0 while button != BUTTON_START: button = pad.get_pressed() if button & BUTTON_UP == BUTTON_UP: move_group.y += -1 if button & BUTTON_DOWN == BUTTON_DOWN: move_group.y += 1 if button & BUTTON_LEFT == BUTTON_LEFT: move_group.x += -1 if button & BUTTON_RIGHT == BUTTON_RIGHT: move_group.x += 1 time.sleep(0.01) move_group.x %= display.width move_group.y %= display.height
Simple pybadge circuitpython code example
I just got a pybadge, and I was trying to find an example that used the display but only used the core libraries. I couldn't find one, so here it is. I grant this code to the public domain.
import time import board import displayio import digitalio import vectorio import gamepadshift BUTTON_LEFT = 128 BUTTON_UP = 64 BUTTON_DOWN = 32 BUTTON_RIGHT = 16 BUTTON_SELECT = 8 BUTTON_START = 4 BUTTON_A = 2 BUTTON_B = 1 print('About to begin.') for i in range(3,0,-1): print(i) time.sleep(0.2) circle = vectorio.Circle(10) circle2 = vectorio.Circle(6) palette = displayio.Palette(2) palette[0] = 0x000000 palette[1] = 0xFFFFFF palette.make_transparent(0) palette2 = displayio.Palette(2) palette2[0] = 0xFF0000 palette2[1] = 0x0000FF palette2.make_transparent(0) vect = vectorio.VectorShape(shape=circle, pixel_shader=palette) vect2 = vectorio.VectorShape(shape=circle2, pixel_shader=palette2, x=5, y=-5) group = displayio.Group() group.append(vect) group.append(vect2) display = board.DISPLAY display.show(group) group.x = 20 group.y = 20 pad = gamepadshift.GamePadShift(digitalio.DigitalInOut(board.BUTTON_CLOCK), digitalio.DigitalInOut(board.BUTTON_OUT), digitalio.DigitalInOut(board.BUTTON_LATCH)) button = 0 while button != BUTTON_START: button = pad.get_pressed() if button == BUTTON_UP: group.y += -1 elif button == BUTTON_DOWN: group.y += 1 elif button == BUTTON_LEFT: group.x += -1 elif button == BUTTON_RIGHT: group.x += 1 time.sleep(0.01) group.x %= display.width group.y %= display.height
Sunday, November 8, 2020
How Trump Changed America
"Seeking to understand rather than be understood requires a suppression of ego that takes practice. Lots of us are out of practice."
https://fivethirtyeight.com/features/how-trump-changed-america/
Thursday, October 29, 2020
Don't vote for Trump
In 2016 American voters did not know whom they were getting. Now they do. They would be voting for division and lying. They would be endorsing the trampling of norms and the shrinking of national institutions into personal fiefs. They would be ushering in climate change that threatens not only distant lands but Florida, California and America’s heartlands. They would be signalling that the champion of freedom and democracy for all should be just another big country throwing its weight around. Re-election would put a democratic seal on all the harm Mr Trump has done.
https://www.economist.com/leaders/2020/10/29/why-it-has-to-be-biden