-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
76 changed files
with
1,007 additions
and
919 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,14 +17,17 @@ | |
* Contact: [email protected] | ||
*/ | ||
|
||
#ifndef _AKC6955_H // Prevent this file from being compiled more than once | ||
#define _AKC6955_H | ||
|
||
#include <Arduino.h> | ||
#include <Wire.h> | ||
|
||
#define DEFAUL_I2C_ADDRESS 0x10 | ||
#define CURRENT_MODE_FM 1 | ||
#define CURRENT_MODE_AM 0 | ||
#define CRYSTAL_12MHZ 0 | ||
#define CRYSTAL_32kHz 1 | ||
#define CRYSTAL_32KHz 1 | ||
|
||
#define MAX_SEEK_TIME 3000 // Maximum time have to be a seeking process (in ms). | ||
#define AKC_SEEK_UP 1 | ||
|
@@ -450,7 +453,7 @@ class AKC695X | |
uint16_t currentStep; //!< Strore the current step | ||
uint16_t currentFrequency; //!< Store the current frequency | ||
uint8_t currentMode = 0; //!< Store the current mode: 1 = FM; 0 = AM | ||
uint8_t currentCrystalType = CRYSTAL_32kHz; //!< Store the crystal type used: 0 = 12MHz; 1 = 32.768kHz | ||
uint8_t currentCrystalType = CRYSTAL_32KHz; //!< Store the crystal type used: 0 = 12MHz; 1 = 32.768kHz | ||
uint8_t currentMode3k = 0; //!< 1 = 3K; 0 = AM | ||
|
||
// AM current band information | ||
|
@@ -528,5 +531,7 @@ class AKC695X | |
|
||
void commitTune(); | ||
|
||
void convertToChar(uint16_t value, char *strValue, uint8_t len, uint8_t dot, uint8_t separator, bool remove_leading_zeros = true) | ||
void convertToChar(uint16_t value, char *strValue, uint8_t len, uint8_t dot, uint8_t separator, bool remove_leading_zeros = true); | ||
}; | ||
|
||
#endif // _AKC6955_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.