whitequark[cis] changed the topic of #glasgow to: https://glasgow-embedded.org · digital interface explorer · https://www.crowdsupply.com/1bitsquared/glasgow · code https://github.com/GlasgowEmbedded/glasgow · logs https://libera.irclog.whitequark.org/glasgow · matrix #glasgow-interface-explorer:matrix.org · discord https://1bitsquared.com/pages/chat
<whitequark[cis]> the --voltage would apply to all port(s) that are claimed by the requested pins
<tpw_rules> what applies to the not-used port? it stays at 0?
<whitequark[cis]> stays at whatever state it was before
<whitequark[cis]> ie the current behavior
<tpw_rules> seems reasonable
<_whitenotifier-3> [glasgow] whitequark opened pull request #630: Reimplement obsolete pads interface using ports - https://github.com/GlasgowEmbedded/glasgow/pull/630
jstein has quit [Ping timeout: 276 seconds]
redstarcomrade has joined #glasgow
redstarcomrade has quit [Changing host]
redstarcomrade has joined #glasgow
<_whitenotifier-3> [glasgow] whitequark opened pull request #631: applet.interface.i2c_{initiator,target}: modify to use port groups - https://github.com/GlasgowEmbedded/glasgow/pull/631
<_whitenotifier-3> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-631-98ff53af63eef65acaadec8db03c7d16489f2238 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-3> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 1 commit to main [+0/-0/±4] https://github.com/GlasgowEmbedded/glasgow/compare/98ff53af63ee...4c1217661826
<_whitenotifier-3> [glasgow] whitequark closed pull request #631: applet.interface.i2c_{initiator,target}: modify to use port groups - https://github.com/GlasgowEmbedded/glasgow/pull/631
<_whitenotifier-3> [glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-631-98ff53af63eef65acaadec8db03c7d16489f2238 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-3> [glasgow] whitequark synchronize pull request #630: Reimplement obsolete pads interface using ports - https://github.com/GlasgowEmbedded/glasgow/pull/630
<whitequark[cis]> so, i've realized just now that i've been doing applets wrong
<whitequark[cis]> they're kind of ... inside out
<whitequark[cis]> right now we have a *Applet class which has an imperative build process where it adds arguments, builds gateware, then creates a software driver for it
<whitequark[cis]> this is all done externally to all of these entities
<whitequark[cis]> this works fine up until the moment where you want to do composition
<_whitenotifier-3> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-630-4c1217661826dd3f461caabbe8809cab24e06ce1 - https://github.com/GlasgowEmbedded/glasgow
<whitequark[cis]> because then anything that tries to compose with an existing applet is exposed to many of its implementation details, in a really gnarly way
<whitequark[cis]> thing is, e.g. memory-25x should not care whatsoever how the SPI is implemented, only that it is implemented
<whitequark[cis]> all it should talk to is the SPI controller that was given to it. and the consumer of an SPI controller API shouldn't care that there is a "subtarget" which has a bunch of options or whatever
<whitequark[cis]> the split is all wrong
<whitequark[cis]> instead, there needs to be an initialization stage (literally represented by __init__ methods) where you take an object representing an abstract pin and give it to e.g. an SPIControllerXyz where Xyz is some term we invent
<whitequark[cis]> also some sort of context object I guess
<whitequark[cis]> if SPIControllerXyz needs to add some gateware, it asks the context object to do things such as: give it a gateware-to-software or software-to-gateware channel (it gets an Amaranth stream plus an asyncio something); give it a configuration/status register; give it a LED. the SPIControllerApplet class itself would only have the UI related stuff contained in it, like which arguments should be exposed to the user, how to talk to the
<whitequark[cis]> terminal, whatever
<whitequark[cis]> so add_*_arguments plus interact
<_whitenotifier-3> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 3 commits to main [+0/-1/±20] https://github.com/GlasgowEmbedded/glasgow/compare/4c1217661826...3454c82c3071
<_whitenotifier-3> [glasgow] whitequark closed pull request #630: Reimplement obsolete pads interface using ports - https://github.com/GlasgowEmbedded/glasgow/pull/630
<_whitenotifier-3> [glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-630-4c1217661826dd3f461caabbe8809cab24e06ce1 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-3> [glasgow] whitequark opened pull request #632: Implement selective pin inversion with `--pin-x 0#` CLI options - https://github.com/GlasgowEmbedded/glasgow/pull/632
<_whitenotifier-3> [glasgow] whitequark synchronize pull request #632: Implement selective pin inversion with `--pin-x 0#` CLI options - https://github.com/GlasgowEmbedded/glasgow/pull/632
<whitequark[cis]> tpw_rules: done lol
<whitequark[cis]> I mean selective pin inversion
<whitequark[cis]> and it even inverts any pull resistors as well
<_whitenotifier-3> [glasgow] whitequark synchronize pull request #632: Implement selective pin inversion with `--pin-x 0#` CLI options - https://github.com/GlasgowEmbedded/glasgow/pull/632
<_whitenotifier-3> [glasgow] whitequark synchronize pull request #632: Implement selective pin inversion with `--pin-x 0#` CLI options - https://github.com/GlasgowEmbedded/glasgow/pull/632
<_whitenotifier-3> [glasgow] whitequark synchronize pull request #632: Implement selective pin inversion with `--pin-x 0#` CLI options - https://github.com/GlasgowEmbedded/glasgow/pull/632
<_whitenotifier-3> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-632-3454c82c3071774feab2106cd01a92cf39cde782 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-3> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 3 commits to main [+0/-0/±12] https://github.com/GlasgowEmbedded/glasgow/compare/3454c82c3071...934d3fdcdb84
<_whitenotifier-3> [GlasgowEmbedded/glasgow] whitequark 4f89908 - access.direct: implement selective pin inversion with `--pin-x 0#`.
<_whitenotifier-3> [GlasgowEmbedded/glasgow] whitequark 2572df1 - gateware.uart,applet.interface.uart: remove ad-hoc inversion.
<_whitenotifier-3> [GlasgowEmbedded/glasgow] whitequark 934d3fd - applet.interface.spi_controller: remove ad-hoc CS# inversion.
<_whitenotifier-3> [glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-632-3454c82c3071774feab2106cd01a92cf39cde782 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-3> [glasgow] whitequark closed pull request #632: Implement selective pin inversion with `--pin-x 0#` CLI options - https://github.com/GlasgowEmbedded/glasgow/pull/632
<_whitenotifier-3> [glasgow] whitequark synchronize pull request #586: [WIP] An applet for controlling a quad-SPI (QSPI/QPI) bus - https://github.com/GlasgowEmbedded/glasgow/pull/586
<_whitenotifier-3> [glasgow] whitequark synchronize pull request #586: [WIP] An applet for controlling a quad-SPI (QSPI/QPI) bus - https://github.com/GlasgowEmbedded/glasgow/pull/586
redstarcomrade has quit [Read error: Connection reset by peer]
<_whitenotifier-3> [glasgow] jwise opened pull request #633: docs: provide a more gentle introduction to applets - https://github.com/GlasgowEmbedded/glasgow/pull/633
<joshua_> I have done as I promised
<joshua_> I turned on GitHub pages for my branch: https://jwise.github.io/glasgow/jwise/applet-docs/use/basic.html
jstein has joined #glasgow
jstein has quit [Remote host closed the connection]
siriusfox has quit [Ping timeout: 248 seconds]
siriusfox has joined #glasgow
dx has quit [Quit: beep boop]
dx has joined #glasgow
galibert[m] has joined #glasgow
<galibert[m]> Has esden temporarily stopped producing Glasgows?
redstarcomrade has joined #glasgow
redstarcomrade has quit [Changing host]
redstarcomrade has joined #glasgow
redstarcomrade has quit [Read error: Connection reset by peer]
pitust has quit [Remote host closed the connection]
dfriehs has quit [Remote host closed the connection]
lane has quit [Remote host closed the connection]
chipb has quit [Remote host closed the connection]
alethkit has quit [Remote host closed the connection]
lane has joined #glasgow
chipb has joined #glasgow
alethkit has joined #glasgow
dfriehs has joined #glasgow
pitust has joined #glasgow
<_whitenotifier-3> [glasgow] whitequark reviewed pull request #633 commit - https://github.com/GlasgowEmbedded/glasgow/pull/633#discussion_r1688206080
<_whitenotifier-3> [glasgow] whitequark reviewed pull request #633 commit - https://github.com/GlasgowEmbedded/glasgow/pull/633#discussion_r1688197162
<_whitenotifier-3> [glasgow] whitequark reviewed pull request #633 commit - https://github.com/GlasgowEmbedded/glasgow/pull/633#discussion_r1688201561
<_whitenotifier-3> [glasgow] whitequark reviewed pull request #633 commit - https://github.com/GlasgowEmbedded/glasgow/pull/633#discussion_r1688202255
<_whitenotifier-3> [glasgow] whitequark commented on pull request #633: docs: provide a more gentle introduction to applets - https://github.com/GlasgowEmbedded/glasgow/pull/633#issuecomment-2245480546
<whitequark[cis]> joshua_: I'm quite happy with your PR overall, great work
<whitequark[cis]> * joshua_: I'm quite happy with the direction in your PR, great work
<whitequark[cis]> re: [entry points](https://packaging.python.org/en/latest/guides/creating-and-discovering-plugins/#using-package-metadata), the list in `pyproject.toml` is transformed into metadata which is installed into a database in site-packages in your venv, and this database can be queried by e.g. glasgow CLI
<whitequark[cis]> this is actually the same mechanism as used for [project.scripts]
<whitequark[cis]> <galibert[m]> "Has esden temporarily stopped..." <- I guess esden needs rest too :)
<galibert[m]> Yeah, makes sesse
Guest57 has joined #glasgow
Guest57 has quit [Client Quit]
<_whitenotifier-3> [glasgow] isabelburgos opened pull request #634: applet.control.servo: modify to use port groups - https://github.com/GlasgowEmbedded/glasgow/pull/634
FFY00 has joined #glasgow
<_whitenotifier-3> [glasgow] whitequark reviewed pull request #634 commit - https://github.com/GlasgowEmbedded/glasgow/pull/634#discussion_r1688507022
<_whitenotifier-3> [glasgow] whitequark reviewed pull request #634 commit - https://github.com/GlasgowEmbedded/glasgow/pull/634#discussion_r1688507705
<_whitenotifier-3> [glasgow] isabelburgos opened pull request #635: applet.interface.ps2_host: modify to use port groups - https://github.com/GlasgowEmbedded/glasgow/pull/635
FFY00 has quit [Remote host closed the connection]
<_whitenotifier-3> [glasgow] isabelburgos synchronize pull request #634: applet.control.servo: modify to use port groups - https://github.com/GlasgowEmbedded/glasgow/pull/634
<_whitenotifier-3> [glasgow] isabelburgos synchronize pull request #634: applet.control.servo: modify to use port groups - https://github.com/GlasgowEmbedded/glasgow/pull/634
<_whitenotifier-3> [glasgow] whitequark commented on pull request #634: applet.control.servo: modify to use port groups - https://github.com/GlasgowEmbedded/glasgow/pull/634#issuecomment-2246133010
<_whitenotifier-3> [glasgow] isabelburgos synchronize pull request #634: applet.control.servo: modify to use port groups - https://github.com/GlasgowEmbedded/glasgow/pull/634
<_whitenotifier-3> [glasgow] isabelburgos synchronize pull request #634: applet.control.servo: modify to use port groups - https://github.com/GlasgowEmbedded/glasgow/pull/634
<_whitenotifier-3> [glasgow] whitequark commented on pull request #634: applet.control.servo: modify to use port groups - https://github.com/GlasgowEmbedded/glasgow/pull/634#issuecomment-2246164228
<_whitenotifier-3> [glasgow] isabelburgos synchronize pull request #634: applet.control.servo: modify to use port groups - https://github.com/GlasgowEmbedded/glasgow/pull/634
<_whitenotifier-3> [glasgow] whitequark commented on pull request #634: applet.control.servo: modify to use port groups - https://github.com/GlasgowEmbedded/glasgow/pull/634#issuecomment-2246202993
<_whitenotifier-3> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-634-934d3fdcdb84b98931f4ae59e03506ac47a163bc - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-3> [glasgow] whitequark reviewed pull request #635 commit - https://github.com/GlasgowEmbedded/glasgow/pull/635#discussion_r1688647921
<_whitenotifier-3> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 1 commit to main [+0/-0/±1] https://github.com/GlasgowEmbedded/glasgow/compare/934d3fdcdb84...b62c254a6359
<_whitenotifier-3> [GlasgowEmbedded/glasgow] isabelburgos b62c254 - applet.control.servo: modify to use port groups
<_whitenotifier-3> [glasgow] whitequark closed pull request #634: applet.control.servo: modify to use port groups - https://github.com/GlasgowEmbedded/glasgow/pull/634
<_whitenotifier-3> [glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-634-934d3fdcdb84b98931f4ae59e03506ac47a163bc - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-3> [glasgow] isabelburgos synchronize pull request #635: applet.interface.ps2_host: modify to use port groups - https://github.com/GlasgowEmbedded/glasgow/pull/635
<_whitenotifier-3> [glasgow] whitequark commented on pull request #635: applet.interface.ps2_host: modify to use port groups - https://github.com/GlasgowEmbedded/glasgow/pull/635#issuecomment-2246361102
<_whitenotifier-3> [glasgow] isabelburgos synchronize pull request #635: applet.interface.ps2_host: modify to use port groups - https://github.com/GlasgowEmbedded/glasgow/pull/635
<_whitenotifier-3> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-635-b62c254a6359261f326c78084f11af2199e8b6f5 - https://github.com/GlasgowEmbedded/glasgow
hl has quit [Quit: ZNC - https://znc.in]
<_whitenotifier-3> [glasgow] isabelburgos opened pull request #636: applet.interface.sbw_probe: modify to use port groups - https://github.com/GlasgowEmbedded/glasgow/pull/636
<_whitenotifier-3> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 1 commit to main [+0/-0/±1] https://github.com/GlasgowEmbedded/glasgow/compare/b62c254a6359...6ca1213cf34b
<_whitenotifier-3> [glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-635-b62c254a6359261f326c78084f11af2199e8b6f5 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-3> [glasgow] whitequark closed pull request #635: applet.interface.ps2_host: modify to use port groups - https://github.com/GlasgowEmbedded/glasgow/pull/635
<joshua_> whitequark[cis], I have some unpleasant stuff I need to do now for work, but after I finish the unpleasant stuff, I'll take a pass on your comments as a reward for myself
hl has joined #glasgow