<TedSchundler[m]>
Thanks for the recent SPI fixes. I was having some trouble a week or two ago and signals didn't seem quite right on the oscilloscope for mode 3 with the flags about rising edge, etc. Now it seems to be working as expected.
<TedSchundler[m]>
I noticed that "--mode 3" flag on the CLI returns an error, but since it's the default now that doesn't matter.
<whitequark[cis]>
oh, does it? could you post the error?
<whitequark[cis]>
(also, SPI isn't done until it supports every mode; it turns out to be way more prevalent than i expected to have devices that really do only work in a specific mode)
sakirious[m] has joined #glasgow
<sakirious[m]>
Anywhere to start if you're developing a custom applet? Referencing the existing applets or is there an example/tutorial I'm just missing?
<whitequark[cis]>
copy examples/boilerplate.py, then extend it by looking at existing applets
<whitequark[cis]>
despite being the author of the thing, i do the exact same thing every time i make a new applet, there isn't a secret sauce
<sakirious[m]>
Ok, will do. Thank you!
<whitequark[cis]>
we're currently in the middle of an API migration, so you probably only want to look at "V2" applets for examples of code
<sakirious[m]>
Hmm...any easy way to identify the v2 vs legacy applets? I see the commit messages, but any other method?
<whitequark[cis]>
just grep the applet __init__.py for `GlasgowAppletV2
<whitequark[cis]>
* just grep the applet __init__.py for GlasgowAppletV2
<TedSchundler[m]>
Related to working more globally, I wonder if a signal like this might be more universal, where the data is in the valid state for both edges of the clock.
<TedSchundler[m]>
(I was noticing a signal like that on my oscilloscope from an arduino)
<TedSchundler[m]>
for input, read at the same point I have the output switching there. Then you might need to flip the polarity on clock
<TedSchundler[m]>
but then mode might be less important that idle clock level
<whitequark[cis]>
the problem with this is that you get frequency-limited
redstarcomrade has joined #glasgow
redstarcomrade has quit [Changing host]
redstarcomrade has joined #glasgow
redstarcomrade has quit [Read error: Connection reset by peer]
lcfr029A has joined #glasgow
lcfr029A has left #glasgow [#glasgow]
redstarcomrade has joined #glasgow
redstarcomrade has joined #glasgow
redstarcomrade has quit [Changing host]
redstarcomrade has quit [Read error: Connection reset by peer]