Skip to content

Conversation

@ScruffR
Copy link

@ScruffR ScruffR commented Jul 1, 2016

Also fixed some glitch with not Serial.printing the first note in a song in playSong()

ScruffR added 4 commits July 1, 2016 13:21
`whichButtonsOn()` returns a `uint8_t` that has a bit set for each button (button1 .. bit1 .. 0b0000 0010, button2 .. bit2 ...)
`firstButtonOn()` returns the number of the lowest number button 1, 2, 3 or 4..
`whichButtonsOn()` returns a `uint8_t` that contains a bit mask for each pressed button (button1 .. bit1 .. 0b00000010, button2 ..bit2 .. 0b00000100, ...)
`firstButtonOn()` returns the number of the lowest number button currently pressed (1, 2, 3 or 4).
@technobly
Copy link
Member

I just added sharp and flat support today as well! The example that goes with it is pretty nuts. Will submit a PR tomorrow ;-)

@ScruffR
Copy link
Author

ScruffR commented Jul 3, 2016

This was my encounter with that topic (Game of Thrones ;-) )
https://community.particle.io/t/photon-got-theme/24065/5

@technobly
Copy link
Member

Thanks for the submission! We have a few of these now for sharps and flats and will get this functionality added soon :)

Do you want to rebase/resubmit with just the button additions?

@ScruffR
Copy link
Author

ScruffR commented Jul 3, 2016

Yup, I originally wanted to submit that as a seperate PR, but being a GitHub noob, my commits just got funneled into this one 😊
Probably should have opened a seperate branch for each part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants