2023-04-13 22:45:31 +00:00
|
|
|
#include "../wiegand.h"
|
2023-04-07 03:46:18 +00:00
|
|
|
|
|
|
|
void wiegand_instructions_scene_on_enter(void* context) {
|
|
|
|
App* app = context;
|
|
|
|
widget_reset(app->widget);
|
|
|
|
widget_add_string_element(app->widget, 0, 0, AlignLeft, AlignTop, FontPrimary, "Instructions");
|
|
|
|
widget_add_text_scroll_element(
|
|
|
|
app->widget,
|
|
|
|
0,
|
|
|
|
15,
|
|
|
|
128,
|
|
|
|
40,
|
2023-09-14 02:56:30 +00:00
|
|
|
"Version 1.1\n"
|
2023-04-07 03:46:18 +00:00
|
|
|
"Only use on devices you own!\n"
|
|
|
|
"Connect D0 (Green) to pin A4\n"
|
|
|
|
"Connect D1 (White) to pin A7\n"
|
|
|
|
"Connect GND (Black) to GND\n"
|
2023-05-02 17:02:09 +00:00
|
|
|
"\nOption 1 (no mosfet):\n"
|
2023-04-07 03:46:18 +00:00
|
|
|
"Add a 10K inline resistor on D0\n"
|
|
|
|
"between keypad and door.\n"
|
|
|
|
"Connect Flipper on door\n"
|
|
|
|
"side. Add 10K inline resistor\n"
|
|
|
|
"on D1 between keypad and\n"
|
|
|
|
"door. Connect Flipper on\n"
|
|
|
|
"door side. Do not inturrupt\n"
|
|
|
|
"the D0/D1 connections while\n"
|
2023-05-02 17:02:09 +00:00
|
|
|
"adding the resistors."
|
|
|
|
"\n\nOption 2 (mosfet):\n"
|
|
|
|
"Connect pin A6 to gate of\n"
|
|
|
|
"mosfet for D1. Connect 5K\n"
|
|
|
|
"resistor from gate to GND.\n"
|
|
|
|
"Connect pin A7 to drain of\n"
|
|
|
|
"mosfet for D1. Connect source\n"
|
|
|
|
"of mosfet for D1 to GND.\n"
|
|
|
|
"Connect pin B3 to gate of\n"
|
|
|
|
"mosfet for D0. Connect 5K\n"
|
|
|
|
"resistor from gate to GND.\n"
|
|
|
|
"Connect pin A4 to drain of\n"
|
|
|
|
"mosfet for D0. Connect\n"
|
|
|
|
"source of mosfet for D0 to\n"
|
2023-09-14 02:56:30 +00:00
|
|
|
"GND.\n");
|
2023-04-07 03:46:18 +00:00
|
|
|
view_dispatcher_switch_to_view(app->view_dispatcher, WiegandWidgetView);
|
|
|
|
}
|