cymplecy / scratch_gpio

Code for scratch_gpio_handler
42 stars 23 forks source link

V8net #16

Closed threepistons closed 6 years ago

threepistons commented 6 years ago

Addresses sudo dependency and dependency on "pi" user, to more gracefully handle multi-user environments. See #15.

Briefly:

cymplecy commented 6 years ago

[edit] Note: Users should run ScratchGPIOPlus versions when working with addon boards. The basic version sets 11,12,13,15,16,18 as outputs and most of the other pins as inputs (with pull-ups) - this is useful if jsut using breadboards (as we did in the initial days) The plus version doesn't default any pins to any state and is the one to be used when using addon boards.

cymplecy commented 6 years ago

On pedagogical grounds - I don't think including a full working example of a Pibrella on launch of the program is a good idea - it sort of defeats the point of learning how to do something :)

threepistons commented 6 years ago

Users should run ScratchGPIOPlus versions when working with addon boards.

Ah, I didn't know about the pullups. I didn't notice any problems with the Pibrella without them. I can reinstate the commented-out blocks.

On pedagogical grounds - I don't think including a full working example of a Pibrella on launch of the program is a good idea - it sort of defeats the point of learning how to do something :)

I discussed this with the class leader. He took the view that having the Pibrella test sample launching on default was useful as it allows the supervisors to easily check the Pibrella's functioning prior to letting the students loose, and he showed me that dragging the code blocks to the left would delete them. Perhaps this is something that I should do locally in post-install, as I can see that it would be counter-productive in other cases.

threepistons commented 6 years ago

The first Pibrella session this morning "all went perfectly" according to the class leader. Thank you so much for your help.

cymplecy commented 6 years ago

:)

On 19 January 2018 at 15:32, threepistons notifications@github.com wrote:

The first Pibrella session this morning "all went perfectly" according to the class leader. Thank you so much for your help.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/cymplecy/scratch_gpio/pull/16#issuecomment-358998928, or mute the thread https://github.com/notifications/unsubscribe-auth/ACP4tNHZQcpv3w_urDO822kAeylMmDpoks5tMLWggaJpZM4RhcEB .