Pastebin
Paste #49857: No description
< previous paste - next paste>
Pasted by Anonymous Coward
# Component DIP Switch Configuration Guide
# Based on switch configuration diagrams
kb_clear
# Main menu
while true do
kb_clear
print "=== Component Config ==="
print ""
print "Select component:"
print "1. RF433"
print "2. GPS"
print "3. RFID PN532"
print "4. NRF24"
print "0. Exit"
print ""
delay 100
string choice = kb_read
if choice == "1" then
kb_clear
print "=== RF433 Configuration ==="
print ""
print "Top Row (L to R):"
print "CC: OFF"
print "NRF: OFF"
print "IO: OFF"
print "PN532: OFF"
print "GPS: OFF"
print ""
print "Bottom Row (L to R):"
print "RFTX: ON"
print "RFRX: ON"
print "IRTX: OFF"
print "IRRX: OFF"
print "SPI: OFF"
print ""
print "Press any key..."
kb_read
elsif choice == "2" then
kb_clear
print "=== GPS Configuration ==="
print ""
print "Top Row (L to R):"
print "CC: OFF"
print "NRF: OFF"
print "IO: OFF"
print "PN532: OFF"
print "GPS: ON"
print ""
print "Bottom Row (L to R):"
print "RFTX: OFF"
print "RFRX: OFF"
print "IRTX: OFF"
print "IRRX: OFF"
print "SPI: OFF"
print ""
print "Press any key..."
kb_read
elsif choice == "3" then
kb_clear
print "=== RFID PN532 Config ==="
print ""
print "Top Row (L to R):"
print "CC: OFF"
print "NRF: OFF"
print "IO: OFF"
print "PN532: ON"
print "GPS: OFF"
print ""
print "Bottom Row (L to R):"
print "RFTX: OFF"
print "RFRX: OFF"
print "IRTX: OFF"
print "IRRX: OFF"
print "SPI: OFF"
print ""
print "Press any key..."
kb_read
elsif choice == "4" then
kb_clear
print "=== NRF24 Configuration ==="
print ""
print "Top Row (L to R):"
print "CC: OFF"
print "NRF: ON"
print "IO: ON"
print "PN532: ON"
print "GPS: OFF"
print ""
print "Bottom Row (L to R):"
print "RFTX: OFF"
print "RFRX: OFF"
print "IRTX: OFF"
print "IRRX: OFF"
print "SPI: OFF"
print ""
print "Press any key..."
kb_read
elsif choice == "0" then
kb_clear
print "Goodbye!"
delay 1000
break
end
end
New Paste
Go to most recent paste.