EmbeddedNim / picostdlib

Nim wrapper for the raspberry pi stdlib
MIT License
70 stars 11 forks source link

example usb2 #8

Closed Martinix75 closed 3 years ago

Martinix75 commented 3 years ago

Hello! I tried to enter the sample code usb, but git forbids me: Invalid username or password

andrea@tec-martin:~/Documenti/Git/picostdlib> git push --set-upstream origin Martinix75 remote: Invalid username or password. fatal: Autenticazione non riuscita per 'https://github.com/beef331/picostdlib.git/' andrea@tec-martin:~/Documenti/Git/picostdlib>

I'm learning these days to use git, so chances are I'm still doing something wrong! :(

beef331 commented 3 years ago

I believe your origin is my repo, fork it then do git remote add-url devel $yourGitUrlToFork, the git push --set-upstream devel $YourGitBranch

Martinix75 commented 3 years ago

maybe I succeeded !!! let me know if the hello_ub file has arrived :))

beef331 commented 3 years ago

You did it! And also showed me that there needs to be sugar for the gpio as such i made https://github.com/beef331/picostdlib/blob/master/src/picostdlib/gpio.nim#L66 which is used like setupGpio(led1, Gpio(25), Out)