Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: AT24C1024 Amp AverageAnalogIn BaseMachineUIController Envelope ExioBufferdController FilterController MCP23S17 OscController PinDetect RotaryEncoder Sequence SequencerDisplay mbed-rtos mbed st7567LCD
Fork of BaseMachine by
Diff: main.cpp
- Revision:
- 17:bc1f0fea5bc9
- Parent:
- 14:16d53ac0a61a
- Child:
- 20:bc7bd7faa8d5
--- a/main.cpp Mon Nov 28 04:00:14 2016 +0000
+++ b/main.cpp Wed Dec 21 03:59:51 2016 +0000
@@ -34,6 +34,7 @@
//SPI1 (PinName mosi, PinName miso, PinName sclk, PinName ssel=NC)
SPI SpiMaster(PA_7, PA_6, PA_5);
+DigitalOut SpiMasterReset(PB_10, 0);
Sequence sequences[SEQUENCE_N];
SpiSequenceSender SequenceSender(&SpiMaster, D9, sequences, SEQUENCE_N, samplingPeriod, bpm);
@@ -145,6 +146,7 @@
//--------------------------------------------------------------------
// Setup Devices
//
+ SpiMasterReset = 1;
SpiMaster.format(8, 0);
SpiMaster.frequency(SPI1_RATE);
@@ -158,7 +160,7 @@
SequenceSender.attachUpdate(&updateTicks);
SequenceSender.setWaveShape(waveShape);
-
+
//--------------------------------------------------------------------
// Main loop
//
