Closed Quezler closed 6 years ago
Nice, thanks for the pull request! I will test it asap. In the meantime, could you add a link to the examples at the end of the Examples section in the README? So people also find it.
I think it would be wise to write a short explanation to what each example does, most are quite straight forward but in test.js there is so much going on i don't even know what it does 😟
Indeed, a short explanation would be perfect. Please ignore test.js, it is a messy playground and not intended to be read by anyone, it could could be harmful for the mind ;)
Okay, I just tested it. I must say, it is very cool and intuitive to read the numbers.
I have added two comments in the file. Please fix at least the import, then I will merge it. If you want, also add a short description in the Readme, otherwise I will do it.
Thank you!
Ah sorry. Here it is. The comments were pending.
I'll add an example section to the readme, then we can merge :)
@Granjow examples have been added to the readme 👍
Please also require('../launchpad-mini')!
Done :)
(my bad, i thought the green in the comment here meant that you edited something)
Add -mini
and then it should work :D
You threw me off guard 🙈
Sorry :D Thanks for the contribution!
No problem, it likely wont be the last :D
Some of my projects i am slowly making progress on:
(like with the binary example the pad gets reset on every change and you can noticably see buttons that should remain on blink for a fraction of a second)
(also keeps track of button states, so you can see which buttons you told which color to be, since the pad itself is write only afaik)
connect 4 game
some sort of snake animation
a sort of physics engine to make 'dots' (colored buttons) move on their axis
'gravity', module for the 'physics engine', allow dots to fall in a direction until they hit something (idea was originally for connect 4, that you could see your dot fall down towards the others, but it was to messy to do it without a dedicated commit, physics & gravity engine)
I just got my launchpad mini in the mail today, and thus started to play around a little.
This example converts your binary input (bottom row) to a number in the 0-255 range.
red = binary 0 green = binary 1
Right side shows the 1x digit. Left side shows the 10x digit. Top bar shows the 100x digit.
Once again thank you for making this library, and i hope my example will inspire others :)