# Wokwi project
Animasi LED
## Usage
Keyboard Shortcut (click on blank space on the right side)
1. Manual Button: 1 - 6
2. Play Button: 7
3. Stop Button: 8
3. Click on Encoder, use arrow key to turn the Encoder,
and use spacebar to click on the Encoder switch
## Progress
1. 7 Segment A Loading dan [Revisi] 7 Segment B counting jumlah file
2. Manual Button
3. Record animasi ke SD Card
4. Play Button memulai animasi dari SD Card
5. Stop Button menghentikan animasi berjalan
6. [Revisi] Pause LED mati semua
7. Resume melanjutkan animasi yang di pause
8. Play Button di tahan 3 detik masuk mode Reverse animasi
9. Encoder Button masuk mode Speed untuk mengubah kecepatan animasi
10. Stop button di tahan 3 detik sekali masuk mode Repeat 1x
11. Stop button di tahan 3 detik dua kali masuk mode Repeat All
12. [Revisi] Shift register diganti jadi langsung ke pin LED
## Pinout using STM32F103C8T6-40PIN Blue Pill
# Buttons
const uint8_t mbButtonPins[] = {PB12, PB13, PB14, PB15, PA8, PA11}; // Manual Button
const uint8_t startButtonPin = PA12; // Start Button
const uint8_t stopButtonPin = PA15; // Stop Button
# LEDs
const uint8_t ledPins[] = {PB4, PB5, PB6, PB7, PB8, PB9};
# Rotary Encoder
const uint8_t ENCODER_CLK = PA0;
const uint8_t ENCODER_DT = PA1;
const uint8_t ENCODER_SW = PB3;
# SD Card
const uint8_t CS_PIN = PA4;
---
MOSI (DO) = PA7 (SP1_MOSI)
SCK = PA5 (SP1_SCK)
MISO(DI) = PA6 (SP1_MISO)
# 7 Segment
const uint8_t CLK = PB0;
const uint8_t DIO = PB1;