*** tpb has joined #tomu | 00:00 | |
*** nrossi has joined #tomu | 00:13 | |
xobs | CarlFK: it loads then? Hooray! | 00:17 |
---|---|---|
CarlFK | xobs: yep - I can poke around now - hooray indeed! | 00:23 |
xobs | USB hid ought to work, but I'm not sure how. | 00:24 |
xobs | At any rate, I'll make a twitter post about it. | 00:24 |
xobs | Hmm... though I do still see a lot of USB disk corruption. I'll track that down. | 01:14 |
*** CarlFK has quit IRC | 01:36 | |
*** CarlFK has joined #tomu | 01:57 | |
xobs | CarlFK: I fixed the SPI stuff, so https://learn.adafruit.com/circuitpython-essentials/circuitpython-hid-keyboard-and-mouse should now work. | 02:13 |
tpb | Title: CircuitPython HID Keyboard and Mouse | CircuitPython Essentials | Adafruit Learning System (at learn.adafruit.com) | 02:13 |
xobs | And to answer your question from /weeks/ ago: It's now very easy to make a USB HID device :) | 02:13 |
CarlFK | woo! | 02:50 |
CarlFK | xobs: you catch that I can't load code.py? | 02:51 |
xobs | CarlFK: Try https://github.com/xobs/circuitpython/releases/tag/v0.1.1-fomu ? | 02:51 |
tpb | Title: Release v0.1.1-fomu: Beta Release 2 · xobs/circuitpython · GitHub (at github.com) | 02:51 |
CarlFK | xobs: not seeing tty or storage with either 0.1.1 or 1.0.1 | 02:59 |
CarlFK | sec.. let me reboot driver crashes, maybe my kernel is mad at me | 02:59 |
*** CarlFK has quit IRC | 02:59 | |
*** CarlFK has joined #tomu | 03:03 | |
CarlFK | xobs: dfu-util -D circuitpython-v0.1.1-fomu.dfu ... dfu-util -l dosn't see it and dmesg not happy: http://paste.ubuntu.com/p/MQc7x9CkQw/ | 03:06 |
tpb | Title: Ubuntu Pastebin (at paste.ubuntu.com) | 03:06 |
xobs | CarlFK: update to foboot 2.0.3 | 03:07 |
CarlFK | xobs: making progress: Adafruit CircuitPython v0.1.1-fomu on 2019-11-30; Fomu with VexRiscv | 03:09 |
CarlFK | when ubuntu mounted it, dmesg shows [ 397.746578] FAT-fs (sdc1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. | 03:10 |
CarlFK | there is a 4 byte code.py: | 03:10 |
CarlFK | hexdump -c code.py ... 0000000 A d a f | 03:11 |
xobs | That's probably the previous version of the file. The SPI storage used to be really broken. | 03:12 |
xobs | The last 512 bytes of each 4096-byte page would get ignored. It's better now! | 03:12 |
CarlFK | woot: code.py loads and runs! | 03:12 |
xobs | Yay! You should be able to get the `adafruit_hid` library from https://circuitpython.org/libraries, drop it in the `lib` directory, and do hid examples. | 03:13 |
CarlFK | um... which version ? | 03:15 |
xobs | I just picked the latest. | 03:16 |
CarlFK | cp -a /home/carl/src/tv/fomu/adafruit/adafruit-circuitpython-bundle-5.x-mpy-20191128/lib/* . | 03:18 |
CarlFK | cp: error writing './adafruit_rgb_display/hx8357.mpy': No space left on device | 03:18 |
CarlFK | ah, I should get jsut adafruit_hid | 03:18 |
xobs | Yeah, there's a lot of libraries there and only 1MB free. You should just get `adafruit_hid` | 03:18 |
CarlFK | kbd.send(Keycode.SHIFT, Keycode.A) I see A! | 03:23 |
xobs | A! | 03:24 |
CarlFK | how do I detect a touchpad? | 03:30 |
xobs | CarlFK: Asking the hard questions. | 03:31 |
CarlFK | lol | 03:31 |
xobs | I don't know. That hasn't been written yet, but the digitalio library should work. You could try doing something there with floating inputs. | 03:31 |
CarlFK | https://workshop.fomu.im/#hello-world---blink-an-led-1 fix-me :p | 03:32 |
tpb | Title: fomu-workshop | Support files for participating in a Fomu workshop (at workshop.fomu.im) | 03:32 |
xobs | Huh, I hadn't seen that. | 03:33 |
xobs | Also, the `micropython` thing should probably be fixed. And the `riscv-usb-cdcacm` note up above doesn't work with v2.0+ | 03:34 |
CarlFK | this makes it mad: https://dpaste.de/i7XX | 03:39 |
tpb | Title: dpaste/i7XX (Python) (at dpaste.de) | 03:39 |
CarlFK | heh.. don't run that and then switch apps to like irc | 03:42 |
xobs | How does it make it mad? | 03:42 |
CarlFK | lots of sending ^c in 3 2 1 and the kepress goes to whatever has focus | 03:42 |
CarlFK | but let me try to do it as expected - to stop itself .. again | 03:43 |
xobs | Yes, that's what the code says to do. | 03:43 |
CarlFK | when I did it 'right' I got one sending ^c in 3 2 1, and then a bunch of >>>'s | 03:43 |
xobs | I'm not sure if it ever sends the keyup command. | 03:44 |
CarlFK | ah | 03:44 |
CarlFK | yeah, it looks the same as if I hold ^c down and it starts reapeating | 03:46 |
CarlFK | neat. now I can go eat dinner. | 03:46 |
CarlFK | well done!!! | 03:46 |
CarlFK | xobs: kbd.send(Keycode.CONTROL, Keycode.C) should only send one. to hold down and release: kbd.press(Keycode.CONTROL, Keycode.X) ; kbd.release_all() | 05:09 |
CarlFK | maybe the while spins faster than the keyboard driver can deliver the first ^c? | 05:10 |
CarlFK | keyboard driver, term program, serial over usb, which is flooded with HID ^Cs coming at it. maybe the flood in one direction blocks the serial stuff | 05:14 |
xobs | CarlFK: This sorta works. The input is just floating, though, and it isn't a real captouch input. https://gist.github.com/xobs/3ec70ce15cf1d071719d78f7d0adba6f | 08:11 |
tpb | Title: Fomu keyboard test · GitHub (at gist.github.com) | 08:11 |
CarlFK | xobs: neat - thanks | 08:44 |
xobs | CarlFK: I do see a potential problem where, if you have a `code.py` on the disk, it doesn't boot anymore. Fortunately it's easy to reproduce. | 08:54 |
*** matt_c has quit IRC | 10:18 | |
*** samueldr has quit IRC | 10:18 | |
*** matt_c has joined #tomu | 10:24 | |
*** samueldr has joined #tomu | 10:24 | |
xobs | I've built the world's worst profiler. In gdb, I'm printing a backtrace and continuing. In bash, I'm sending gdb a SIGINT every 5 seconds. But at least I know which functions to stick in RAM. | 10:34 |
*** rohitksingh has quit IRC | 11:31 | |
*** xkapastel has joined #tomu | 13:15 | |
*** andi- has quit IRC | 14:51 | |
*** andi- has joined #tomu | 14:55 | |
*** xkapastel has quit IRC | 18:16 | |
TomKeddie | xobs: Sounds ingenious. I've used a scope to profile once or twice, setting a pin is a fast op and you get to use familiar tools. | 18:18 |
*** pollo has quit IRC | 20:00 | |
*** pollo has joined #tomu | 20:09 | |
*** nrossi has quit IRC | 20:25 | |
*** pollo has quit IRC | 20:26 | |
*** pollo has joined #tomu | 20:27 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!