clock lol

This commit is contained in:
MX
2023-11-08 13:41:41 +04:00
parent 33ed5ea1f2
commit a7e6eb7fe4
20 changed files with 133 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ App(
icon="A_Clock_14",
stack_size=2 * 1024,
order=81,
resources="resources",
fap_icon="icon.png",
fap_category="Tools",
)

View File

@@ -0,0 +1,8 @@
# Example file, P.S. keep empty line at the end!
0000
F000
FE00
CAFE
00CA
FF00
FFFF

View File

@@ -0,0 +1,11 @@
# Example file, P.S. keep empty line at the end!
0000000000000000
FE00000000000000
CAFE000000000000
00CAFE0000000000
0000CAFE00000000
000000CAFE000000
00000000CA000000
0000000000A00000
00000000000123FF
FFFFFFFFFFFFFFFF

View File

@@ -0,0 +1,9 @@
# Example file, P.S. keep empty line at the end!
00000000
F0000000
E0000000
FE000000
CAFE0000
00CAFE00
0000CA00
FFFFFFFF

View File

@@ -0,0 +1,6 @@
Filetype: Flipper Music Format
Version: 0
BPM: 130
Duration: 8
Octave: 5
Notes: E6, P, E, B, 4P, E, A, G, A, E, B, P, G, A, D6, 4P, D, B, 4P, D, A, G, A, D, F#, P, G, A, D6, 4P, F#, B, 4P, F#, D6, C6, B, F#, A, P, G, F#, E, P, C, E, B, B4, C, D, D6, C6, B, F#, A, P, G, A, E6, 4P, E, B, 4P, E, A, G, A, E, B, P, G, A, D6, 4P, D, B, 4P, D, A, G, A, D, F#, P, G, A, D6, 4P, F#, B, 4P, F#, D6, C6, B, F#, A, P, G, F#, E, P, C, E, B, B4, C, D, D6, C6, B, F#, A, P, G, A, E6

View File

@@ -0,0 +1,8 @@
# Example file, P.S. keep empty line at the end!
0000000000
FE00000000
CAFE000000
00CAFE0000
0000CAFE00
000000CAFE
00000000CA

View File

@@ -0,0 +1,8 @@
# Example file, P.S. keep empty line at the end!
000000
F00000
E00000
FE0000
CAFE00
00CAFE
0000CA

View File

@@ -0,0 +1,8 @@
# Example file, P.S. keep empty line at the end!
000000000000
00FE00000000
00CAFE000000
0000CAFE0000
000000CAFE00
00000000CAFE
0000000000CA

View File

@@ -0,0 +1,8 @@
# Example file, P.S. keep empty line at the end!
00000000
F0000000
FE000000
CAFE0000
00CAFE00
0000CAFE
000000CA

View File

@@ -0,0 +1,5 @@
# Example file, it will not work, you need to add paths to your files!
sub: /ext/subghz/Vehicles/Tesla/Tesla_charge_AM270.sub
sub: /ext/subghz/Vehicles/Tesla/Tesla_charge_AM650.sub
sub: /ext/subghz/Test1.sub
sub: /ext/subghz/Test2.sub

View File

@@ -0,0 +1 @@
swd_clock_delay 100

View File

@@ -0,0 +1,6 @@
message 0 "gonna call call_test_2" dialog
call call_test_2
message 0 "back now" dialog

View File

@@ -0,0 +1,7 @@
# first do a beeeeeep
beep 1
message 0 "Seems to work" dialog
beep 0

View File

@@ -0,0 +1,6 @@
ap_select 0
max_tries 50
block_size 4
mem_dump /ext/swd_scripts/flash.bin 0x00000000 0x100000 2
beep 1
message 5 "Reading sucessful"

View File

@@ -0,0 +1,6 @@
ap_select 0
max_tries 50
block_size 4
mem_dump /ext/swd_scripts/flash.bin 0x00000000 0x100000 2
beep 1
message 5 "Reading sucessful"

View File

@@ -0,0 +1,6 @@
ap_select 0
max_tries 50
block_size 1024
mem_dump /ext/swd_scripts/flash.bin 0x08000000 0x100000 2
beep 1
message 0 "Reading finished" dialog

View File

@@ -0,0 +1,7 @@
beep 1
goto l2
.label l1
beep 0
.label l2
beep 1
goto l1

View File

@@ -0,0 +1,11 @@
# make sure errors do not cause a script abort
errors ignore
message 0 "HAMMER TIME! Trying to halt CPU"
ap_select 0
# loop writing the halt bits
.label l1
mem_write 0xE000EDF0 0xA05F0003
goto l1

View File

@@ -0,0 +1,8 @@
errors ignore
status 0
message 0 "HAMMER TIME! Try to halt the CPU"
.label l1
ap_select 0
mem_write 0xE000EDF0 0xA05F0001
mem_write 0xE000ED0C 0x05FA0004
goto l1

View File

@@ -0,0 +1,3 @@
mem_write 0x20002000 0xdeadbeef
mem_write 0xE000EDF0 0xA05F0001
mem_write 0xE000EDF0 0xA05F0007