Skip to content
Snippets Groups Projects
Unverified Commit d79ef3a1 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

lora32u4ii: User LED is PC7, not PB5

parent 521a5fce
No related branches found
No related tags found
No related merge requests found
#ifndef GPIO_H #pragma once
#define GPIO_H
#include <avr/io.h> #include <avr/io.h>
...@@ -48,8 +47,7 @@ class GPIO { ...@@ -48,8 +47,7 @@ class GPIO {
}; };
inline void setup() { inline void setup() {
// PB5 is both output (user LED) and input (Vbat/2 to ADC). DDRC |= _BV(PC7);
// Leave it as input by default.
} }
inline volatile uint8_t * pinToPort(uint8_t pin) { inline volatile uint8_t * pinToPort(uint8_t pin) {
if (pin <= pb7) { if (pin <= pb7) {
...@@ -201,5 +199,3 @@ class GPIO { ...@@ -201,5 +199,3 @@ class GPIO {
}; };
extern GPIO gpio; extern GPIO gpio;
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment