https://www.youtube.com/watch?v=buobmFogF4U
New to CircuitPython, this feels like it should work according to the docs but it prints six False
s. Any ideas?
#!/usr/bin/env python
import board
import digitalio
import time
class body_controller:
def __init__(self):
SWDIO = board.D5
self._reset_pin = digitalio.DigitalInOut(SWDIO)
print(self._reset_pin.value)
self._reset_pin.switch_to_output(True)
print(self._reset_pin.value)
def turn_on(self):
print(self._reset_pin.value)
self._reset_pin.value = False
print(self._reset_pin.value)
time.sleep(1)
print(self._reset_pin.value)
self._reset_pin.value = True
print(self._reset_pin.value)
body = body_controller()
time.sleep(1)
body.turn_on()
time.sleep(1)
Is there any way to turn off the random tips like "make a receipts folder!" in the Linux desktop app?
This happens if I use set_time
or set_position
. Is this typical, or am I just not doing it right?
This is on a Pi Zero 2 W, so not the most powerful, but should be able to handle this.
These are the relevant bits of how I'm setting up the player:
self._vlc = vlc.Instance()
self._player = self._vlc.media_player_new()
self._list_player = self._vlc.media_list_player_new()
self._list_player.set_media_player(self._player)
playlist = self._vlc.media_list_new()
for index in self._play_order:
playlist.add_media(self._vlc.media_new_path(self._songs[index]))
self._list_player.stop()
self._list_player.set_media_list(playlist)
self._list_player.play()
And trying to seek is just this:
self._player.set_time(_s_to_ms(seconds))
Any ideas would be greatly appreciated!
cross-posted from: https://infosec.pub/post/12005873
I have a Keybow MINI hooked up to a Raspberry Pi Zero W, and I'm using Python to respond to events. I have one button that kicks off playing a song on a passive buzzer, and I'm wondering if there's a way to have a button press stop the song before it completes.
I have a Keybow MINI hooked up to a Raspberry Pi Zero W, and I'm using Python to respond to events. I have one button that kicks off playing a song on a passive buzzer, and I'm wondering if there's a way to have a button press stop the song before it completes.
Do anyone else's wrist hairs get caught in the little gap between the frame and the trackpad/spacers?
Does anyone know if it's possible to have events from the Keybow keyboard cause effects on the Pi Zero W running the keyboard instead of outputting to another machine? Or do I need to go with a different OS and figure out the handling of the keys myself?
cross-posted from: https://infosec.pub/post/11305365
Anyone have a list of changes that they've made to increase battery life? I've got about three hours (with 80% limit in BIOS, which I might get rid of), so I'm sure there's a lot that can be changed.
@TheButtonJustSpins
@infosec.pub