Skip to content

Commit

Permalink
0.1.1
Browse files Browse the repository at this point in the history
+ Small changes
  • Loading branch information
holzheu committed Apr 29, 2023
1 parent 6412265 commit 3c52470
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# FabWaage-Boards (Fablab Bayreuth)
This is the repository for the fabwaage-board. The libraries are designed to compile with Arduino IDE 1.8.x
This is the repository for the fabwaage-board. The libraries are designed to compile with Arduino IDE 2.0.x

## Installation
1. Copy the URL (https://raw.githubusercontent.com/fablab-bayreuth/FabWaage/master/package_fabwaage_index.json) to your additional boardmanager-URLs in your arduino IDE preferences (file/preferences)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ LED7Seg led;
uint8_t dout[] = {HX711_DOUT};
uint8_t sck = HX711_SCK;
long adc;
#define MOVING_AVG 10
#define MOVING_AVG 5
#define MAX_DEV 0.1
#define TAR_AVG 20
#define WEIGHT_AVG 3
#define TAR_AVG 10
#define ONTIME 30
#define TOUCH_POWER_PIN 3

long adcs[MOVING_AVG];
uint8_t current_i = 0;
Expand Down Expand Up @@ -56,6 +56,11 @@ void setup()
pinMode(2, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(2), isr_int0, FALLING);

#if TOUCH_PWR_PIN
pinMode(TOUCH_POWER_PIN,OUTPUT);
digitalWrite(TOUCH_POWER_PIN,HIGH);
#endif

Serial.begin(9600);
Serial.println("Starting ...");
Serial.flush();
Expand Down

0 comments on commit 3c52470

Please sign in to comment.