Board specific definitions for the Adafruit PyBadge.
More...
Board specific definitions for the Adafruit PyBadge.
- Author
- Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr
Definition in file board.h.
#include "cpu.h"
#include "periph/gpio.h"
Go to the source code of this file.
|
#define | LED0_PIN GPIO_PIN(PA, 23) |
| LED0 pin.
|
|
#define | LED_PORT PORT->Group[PA] |
| LED0 port.
|
|
#define | LED0_MASK (1 << 23) |
| LED0 mask.
|
|
#define | LED0_ON (LED_PORT.OUTSET.reg = LED0_MASK) |
| LED0 on macro.
|
|
#define | LED0_OFF (LED_PORT.OUTCLR.reg = LED0_MASK) |
| LED0 off macro.
|
|
#define | LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK) |
| LED0 toggle macro.
|
|
#define | LED0_NAME "LED(Red)" |
| LED0 name.
|
|
|
#define | XTIMER_WIDTH (32) |
| Default timer is 32bit width.
|
|
#define | XTIMER_HZ (1000000ul) |
| Default timer runs at 1MHz.
|
|
◆ BACKLIGHT_MASK
#define BACKLIGHT_MASK (1 << 1) |
Backlight pin mask.
Definition at line 60 of file board.h.
◆ BACKLIGHT_OFF
Turn backlight off.
Definition at line 62 of file board.h.
◆ BACKLIGHT_ON
Turn backlight on.
Definition at line 61 of file board.h.
◆ BACKLIGHT_PIN
Backlight pin.
Definition at line 58 of file board.h.
◆ BACKLIGHT_PORT
#define BACKLIGHT_PORT PORT->Group[PA] |
Backlight pin port.
Definition at line 59 of file board.h.
◆ BUTTON_CLK
Clock pin.
Definition at line 50 of file board.h.
◆ BUTTON_LATCH
Latch pin.
Definition at line 49 of file board.h.
◆ BUTTON_OUT
Serial output pin.
Definition at line 51 of file board.h.
◆ LCD_SCREEN_HEIGHT
LCD screen height.
Definition at line 80 of file board.h.
◆ LCD_SCREEN_WIDTH
LCD screen width.
Definition at line 79 of file board.h.
◆ LED0_MASK
#define LED0_MASK (1 << 23) |
LED0 mask.
Definition at line 36 of file board.h.
◆ LED0_NAME
#define LED0_NAME "LED(Red)" |
LED0 name.
Definition at line 42 of file board.h.
◆ LED0_OFF
#define LED0_OFF (LED_PORT.OUTCLR.reg = LED0_MASK) |
LED0 off macro.
Definition at line 39 of file board.h.
◆ LED0_ON
#define LED0_ON (LED_PORT.OUTSET.reg = LED0_MASK) |
LED0 on macro.
Definition at line 38 of file board.h.
◆ LED0_PIN
LED0 pin.
Definition at line 33 of file board.h.
◆ LED0_TOGGLE
#define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK) |
LED0 toggle macro.
Definition at line 40 of file board.h.
◆ LED_PORT
#define LED_PORT PORT->Group[PA] |
LED0 port.
Definition at line 35 of file board.h.
◆ MTD_0
MTD_0 constant.
Definition at line 103 of file board.h.
◆ SPEAKER_ENABLE_PIN
Speaker enable pin.
Definition at line 95 of file board.h.
◆ SPEAKER_PIN
Speaker pin (A0)
Definition at line 96 of file board.h.
◆ ST77XX_PARAM_CNTRL
#define ST77XX_PARAM_CNTRL ST77XX_CNTRL_ST7735 |
ST77xx controller variant.
Definition at line 69 of file board.h.
◆ ST77XX_PARAM_CS
Chip select pin.
Definition at line 71 of file board.h.
◆ ST77XX_PARAM_DCX
DCX pin.
Definition at line 72 of file board.h.
◆ ST77XX_PARAM_INVERTED
#define ST77XX_PARAM_INVERTED (0) |
Inversion configuration.
Definition at line 77 of file board.h.
◆ ST77XX_PARAM_NUM_LINES
#define ST77XX_PARAM_NUM_LINES (160U) |
Number of screen lines.
Definition at line 74 of file board.h.
◆ ST77XX_PARAM_RGB
#define ST77XX_PARAM_RGB (1) |
RGB configuration.
Definition at line 76 of file board.h.
◆ ST77XX_PARAM_RGB_CHANNELS
#define ST77XX_PARAM_RGB_CHANNELS (128U) |
Number of screen rgb channel (height)
Definition at line 75 of file board.h.
◆ ST77XX_PARAM_ROTATION
Rotation mode.
Definition at line 78 of file board.h.
◆ ST77XX_PARAM_RST
Reset pin.
Definition at line 73 of file board.h.
◆ ST77XX_PARAM_SPI
#define ST77XX_PARAM_SPI SPI_DEV(1) |
SPI device.
Definition at line 70 of file board.h.
◆ WS281X_PARAM_NUMOF
#define WS281X_PARAM_NUMOF (5U) |
Number of LEDs chained.
Definition at line 88 of file board.h.
◆ WS281X_PARAM_PIN
GPIO pin connected to the data pin of the first LED.
Definition at line 87 of file board.h.
◆ XTIMER_HZ
#define XTIMER_HZ (1000000ul) |
Default timer runs at 1MHz.
Definition at line 111 of file board.h.
◆ XTIMER_WIDTH
#define XTIMER_WIDTH (32) |
Default timer is 32bit width.
Definition at line 110 of file board.h.