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.
Diff: SOMO.h
- Revision:
- 2:b95724a49517
- Parent:
- 1:5a7359b415c8
- Child:
- 6:32eb30d2410f
--- a/SOMO.h Wed Apr 26 19:02:16 2017 +0000
+++ b/SOMO.h Tue Feb 25 12:52:32 2020 +0000
@@ -8,31 +8,57 @@
//**************************************************************************
// class SOMO SOMO.h
-// This is the main class. It shoud be used like this : SOMO audio(p13,p14);
+// classe principale. exemple d'utilisation : SOMO audio(p13,p14);
-class SOMO{
+class Sender
+{
+ private:
+
+ CAN & can;
-public:
- SOMO(PinName TXPin, PinName RXPin);
+ public:
+
+ Sender(CAN & c) : can(c)
+ {
+ }
- void init();
+ void send();
- void playTrackName(char[]);
+};
+
+class SOMO
+{
+
+ public:
- void playTrackNum(unsigned char);
+ SOMO(PinName TXPin, PinName RXPin);
+
+ void init();
+
+ void playTrackName(char[]);
+
+ void playTrackNum(unsigned char, unsigned char);
+
+ void start();
- void stopTrack();
+ void stopTrack();
+
+ void volume(unsigned char);
- void volume(unsigned char);
-
- void reset();
+ void reset();
+
+ void continuous(unsigned char, unsigned char);
protected :
- Serial _serialSOMO;
+ Serial _serialSOMO;
};
+int comm(void);
+
+void not_busy(void);
+
#endif