EmbeddedNim / picostdlib

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

update hello_usb whit new sugar style #10

Closed Martinix75 closed 3 years ago

Martinix75 commented 3 years ago

a simple example of how to receive data from USB. use line termination = none for this example!!

now the example also shows how to use the new sugar style

beef331 commented 3 years ago

Can you please abide by nep1 spaces after :, ,, = as sucha: int = 100, (a, b, c) proc doSomething(a: int = 300): bool =

Martinix75 commented 3 years ago

let's hope it goes better this way ...

Martinix75 commented 3 years ago

sooner or later I hope to be able to do well, it's just that I'm still learning! excuse me!