This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:c4eng:fall2022:projects:sss1 [2022/10/04 13:51] – [DIGITALWRITE] lbrant2 | notes:c4eng:fall2022:projects:sss1 [2022/10/27 03:53] (current) – [NOTES/FREQUENCIES] ilaface | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====WIRINGPI REVIEW===== | =====WIRINGPI REVIEW===== | ||
+ | Remember to set pins used to output mode. | ||
+ | pinMode (pin[X], OUTPUT); | ||
+ | |||
+ | |||
+ | pin[X] is assuming you have a pin array set up. | ||
====PINMODE==== | ====PINMODE==== | ||
Line 13: | Line 18: | ||
Value: the value that is to be assigned to the pin either HIGH or LOW | Value: the value that is to be assigned to the pin either HIGH or LOW | ||
====DIGITALREAD==== | ====DIGITALREAD==== | ||
+ | digitalRead Reads the value from a specified digital pin, either HIGH or LOW. It's syntax reads " digitalRead(pin) " | ||
====DELAY==== | ====DELAY==== | ||
=====NOTES/ | =====NOTES/ | ||
+ | In this project and in the last project we have had to use the frequencies of different notes to put together a song. A frequency is what determines the pitch of a sound. A note is used to represent the pitch and duration of a sound in musical notation. From the notes that are found on pieces of sheet music they need to be converted to a certain frequency to match the original sound of the song. This can be solved with note frequency charts, showing the differentiation between octaves. |