Where I try playing a sample via PwmOutput
Reading some old ZX Spectrum forums, I wanted to check wether playing a sample was possible. So far, no, but there's more things to try.
Diff: Sequencer.cpp
- Revision:
- 0:167d81d4f79f
diff -r 000000000000 -r 167d81d4f79f Sequencer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Sequencer.cpp Sun Mar 08 21:51:59 2015 +0000 @@ -0,0 +1,24 @@ +//#include "Row.h" +#include "Sequencer.h" + +Sequencer::Sequencer(): left(P0_14, PullUp), + right(P0_11, PullUp), + down(P0_12, PullUp), + up(P0_13, PullUp), + square(P0_16, PullUp), + circle(P0_1, PullUp), + led1(P0_9), + led2(P0_8), + pwm(P0_18), + ain(P0_15), + i2c(P0_5, P0_4), + disp(P0_19, P0_20, P0_7, P0_21, P0_22, P1_15, P0_2, LCD_ST7735::RGB) { + srand(this->ain.read_u16()); + this->i2c.frequency(400); + // this->writeRegister(0x2A, 0x01); + this->disp.setOrientation(LCD_ST7735::Rotate270, false); + this->disp.clearScreen(); +} + + +