Skip to content

Commit

Permalink
Update PTSolns_microWatt.h
Browse files Browse the repository at this point in the history
  • Loading branch information
PTSolns authored Oct 27, 2023
1 parent ad16c7e commit a4c5edd
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions src/PTSolns_microWatt.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// microWatt Support Library (mSL)
// Last Update: Oct 27, 2023
// contact@PTSolns.com

#ifndef PTSolns_microWatt_h
#define PTSolns_microWatt_h
#endif
Expand All @@ -6,22 +10,24 @@

const int SDA_pin_default = 21; // Default value for microWatt
const int SCL_pin_default = 22; // Default value for microWatt
const int LED_buildIn = 13;
const int LED_buildIn = 13; // Default value for microWatt

class microWatt
{
public:

uint8_t begin(int LED = LED_buildIn, int number_of_blink = 4, int time_between_blink = 50);
void blink(int LED = LED_buildIn, int number_of_blink = 4, int time_between_blink = 50);
uint8_t begin(const int LED = LED_buildIn, const int number_of_blink = 4, int time_between_blink = 50);
void blink(const int LED = LED_buildIn, const int number_of_blink = 4, int time_between_blink = 50);
void printPinout();
uint8_t setI2Cpins(int SDA_pin = SDA_pin_default, int SCL_pin = SCL_pin_default);
uint8_t setI2Cpins(const int SDA_pin = SDA_pin_default, const int SCL_pin = SCL_pin_default);
void printI2Cpins();
void printSPIpins();
void I2Cscan(int SDA_pin_scan = SDA_pin_default, int SCL_pin_scan = SCL_pin_default);

void I2Cscan(const int SDA_pin_scan = SDA_pin_default, const int SCL_pin_scan = SCL_pin_default);
void fade(const int LED_pin = LED_buildIn, const int PWM_Channel = 0, const int PWM_freq = 500, const int PWM_res = 8, int fade_inc = 5, int time_step = 20);

private:

void callWire(int SDA_pin = SDA_pin_default, int SCL_pin = SCL_pin_default);
void callWire(const int SDA_pin = SDA_pin_default, const int SCL_pin = SCL_pin_default);
void blinkWarning();

};
};

0 comments on commit a4c5edd

Please sign in to comment.