Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated some private fields and constructors

  • Loading branch information...
commit 725177aa1109d949ca4cf326ecb0118da44e19f3 1 parent 0c65412
Will Yager authored
6 src/device/HardwareController.h
View
@@ -9,15 +9,15 @@
#include "Types.h"
class HardwareController {
-
-public:
- HardwareController();
+private:
static void set_red_led(bool value);
static void set_green_led(bool value);
static void set_blue_led(bool value);
static void set_red_pwm(uint8_t value);
static void set_green_pwm(uint8_t value);
static void set_blue_pwm(uint8_t value);
+public:
+ HardwareController();
//Simply iterates through all PHYSICAL keys (i.e. buttons) and
//sets their corresponding bit value to true if they are pressed
//and then returns the corresponding ButtonsState object
6 src/hardware/ButtonDeltaDetector.h
View
@@ -12,11 +12,7 @@ class ButtonDeltaDetector {
private:
bool known_states[64];
public:
- ButtonDeltaDetector(){
- for (uint8_t i=0; i<64; i++) {
- this->known_states[i] = 0;
- }
- }
+ ButtonDeltaDetector():known_states({0}){}
ButtonsDelta update(const ButtonsState& debounced_states);
};
2  src/hardware/DebouncerArray.h
View
@@ -8,7 +8,7 @@
template <int Size>
class DebouncerArray {
-protected:
+private:
//The number of samples that conflict with the current recorded state
unsigned char count[Size];
//The current recorded state
Please sign in to comment.
Something went wrong with that request. Please try again.