-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_history
909 lines (907 loc) · 21 KB
/
.bash_history
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
whoami
hostname
uname -a
cat /etc/os-release
sudo raspi-config
startx
sudo raspi-config
sude reboot
sudo reboot
ifconfig
sudo raspi-config
sudo reboot
uname -a
sudo apt-get update
sudo apt-get full-upgrade
sudo apt-get install vim
sudo reboot
uname -a
startx
hostname
ifconfig -a
cat /proc/cpuinfo
time date
htop
wlan0
ipconfig -a
ifconfig -a
sudo shutdown -h now
scrot file1.png
sudo
sudo -vim
sudo vim
sudo apt-get install -y bc fbi git python3-pip python3-smbus evtest libts-bin
startx
sudo vim /boot/config.txt
sudo reboot
sudo vim /boot/config.txt
sudo reboot
sudo shutdown -h now
sudo vim /etc/udev/rules.d/95-stmpe.rules
sudo vim /etc/udev/rules.d/95-touchmouse.rules
sudo vim /etc/udev/rules.d/95-stmpe.rules
sudo vim /etc/udev/rules.d/95-touchmouse.rules
sudo vim /etc/udev/rules.d/95-ftcaptouch.rules
sudo vim /etc/udev/rules.d/95-touchmouse.rules
sudo rmmod stumpe-ts
sudo rmmod stmpe-ts
sudo rommod stmpe-ts
sudo rmmod stmpe-ts
sudo modprobe stmpe-ts
sudo shutdown -h now
dmesg
dmesg | grep fbtft
startx
sudo shutdown -h now
sudo rmmod stmpe-ts
sudo modprobe stmpe-ts
sudo vim file/etc/pointercal
pwd
cd ..
sudo vim file/etc/pointercal
sudo vim /etc/pointercal
pwd
sudo vim /boot/cmdline.txt
sudo vim /etc/default/console-setup
sudo vim /etc/rc.local
sudo reboot
sudo vim /etc/rc.local
sudo vim /boot/cmdline.txt
sudo reboot
startx
pi@xx353-zh476:~ $ ^Cdo SDL_VIDEO
pi@xx353-zh476:~ $
sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 mplayer -vo sdl -framdrop bigbuckbunny320p.mp4
sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 mplayer -vo sdl -framedrop bigbuckbunny320p.mp4
ls -l /dev/fb*
sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb0 mplayer -vo sdl -framedrop bigbuckbunny320p.mp4
sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 mplayer -vo sdl -framedrop bigbuckbunny320p.mp4
sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb0 mplayer -vo sdl -framedrop bigbuckbunny320p.mp4
sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 mplayer -vo sdl -framedrop bigbuckbunny320p.mp4
sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb0 mplayer -vo sdl -framedrop bigbuckbunny320p.mp4
sudo shutdown -h now
wget http://adafruit-download.s3.amazonaws.com/bigbuckbunny320p.mp4
ls -l
mplayer -h
sudo apt-get update
sudo apt-get install mplayer
mplayer -h
ls -l /dev/fb*
sudo SDL_VIDEODRIVER-fbcon SDL_FBDEV=/dev/fb1 mplayer -vo sdl -framedrop bigbuckbunny320p.mp4
sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 mplayer -vo sdl -framedrop bigbuckbunny320p.mp4
mplayer -ao help
amixer scontrols
amixer -M sget Master
amixer -M sset Master 100%
aplay -l
startx
sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb0 mplayer -vo sdl -framedrop your_video_file.mp4
sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 mplayer -vo sdl -framedrop your_video_file.mp4
sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 mplayer -vo sdl -framedrop bigbuckbunny.mp4
sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 mplayer -vo sdl -framedrop bigbuckbunny320p.mp4
sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb0 mplayer -vo sdl -framedrop bigbuckbunny320p.mp4
sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 mplayer -vo sdl -framedrop bigbuckbunny320p.mp4
ls
mplayer -input file=/home/pi/video_fifo bigbuckbunny320p.mp4
echo "q" > video_fifo
mplayer -input file=/home/pi/video_fifo bigbuckbunny320p.mp4
echo "pause"
echo "pause" > /home/pi/video_fifo
mplayer
p
echo "pause" > /home/pi/video_fifo
echo "q" > /home/pi/video_fifo
mplayer -input cmdlist
touch fifo_test.py
ls
cd lab1_files_f24
ls
cat p
cd
python fifo_test.py
pause
p
python fifo_test.py
python one_button.py
python fifo_test.py
echo "q">video_fifo
python four_button.py
sudo reboot
uname -a
dmesg | grep EP0110M09
Edit /etc/udev/rules.d/95-ftcaptouch.rules
sudo vim /etc/udev/rules.d/95-ftcaptouch.rules
cat /etc/udev/rules.d/95-ftcaptouch.rules
ls -l /dev/input/touchsreen
ls -l /dev/input/touchscreen
dmesg | grep EP0110M09
cd /dev/input
sudo ln -s event3 /dev/input/touchscreen
ls -l
cd .
cd ..
evtest /dev/input/touchscreen
scp -p -r [email protected]:/home/jfs9/lab1_files_f24 /home/pi
scp -p -r [email protected]:/home/jfs9/lab1_files_f24 /home/pi
scp -p -r [email protected]:/home/jfs9/lab1_files_f24 /home/pi
ls -l
cd /home/pi
pwd
ls
mplayer
mkfifo video_fifo
ls -l
mplayer
echo "pause" > video_fifo
ls
mkfifo /home/pi/test_fifo
ls
mplayer -input file=/home/pi/test_fifo bunny_video.mp4
cd /home/pi/test_fifo
pwd
ls
cd /test_fifo
cd /test_fifo/
mplayer -input file=/home/pi/video_fifo bunny_video.mp4
ls
cd lab1_files_f24/
ls
mplayer -input file=/home/pi/video_fifo bigbuckbunny320p.mp4
ls
cd ..
ls
pwd
mplayer -input file=/home/pi/video_fifo bigbuckbunny320p.mp4
mplayer -input file=/home/pi/video_fifo ../bigbuckbunny320p.mp4
mplayer -input file=/home/pi/video_fifo /home/pi/bigbuckbunny320p.mp4
startx
python video_control.py
python one_button.py
python video_control.py
mplayer -input file=/home/pi/video_fifo /home/pi/bigbuckbunny320p.mp4
mplayer -input file=/home/pi/video_fifo /home/pi/bigbuckbunny320p.mp4
mplayer -input file=/home/pi/video_fifo /home/pi/bigbuckbunny320p.mp4startx
startx
mplayer -input file=/home/pi/video_fifo /home/pi/bigbuckbunny320p.mp4
sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 mplayer -vo sdl -framedrop -input file=/home/pi/video_fifo bigbuckbunny320p.mp4
ls
startx
./start_video
chmod +x start_video
./start_video
chmod +x video_control.py
./start_video
ls
mplayer –input file=/home/pi/video_fifo bigbuckbunny320p.mp4
ls
python video_control.py
sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 mplayer -vo sdl -framedrop –input file=/home/pi/video_fifo bigbuckbunny320p.mp4
& python video_control.py
python video_control.py &
`
./start_video
sudo reboot
python video_control.py
python fifo_test.py
python video_control.py
echo "p" > video_fifo
echo "pause" > video_fifo
python one_button.py
python four_button.py
python video_control.py
echo "pause" > video_fifo
python four_button.py
echo "pause" > video_fifo
echo 'pause' > video_fifo
echo 'pause' > /home/pi/video_fifo
cat video_fifo
echo 'pause' > /home/pi/video_fifo
cat video_fifo
ls
cat test_fifo
echo 'pause' > /home/pi/video_fifo
echo 'pause' > video_fifo
./start_video
./start_video
startx
./start_video
mplayer –input file=/home/pi/video_fifo bigbuckbunny320p.mp4
mplayer -input file=/home/pi/video_fifo bigbuckbunny320p.mp4
rm video_fifo
mkfifo video_fifo
ls
mplayer -input file=/home/pi/video_fifo bigbuckbunny320p.mp4
./start_video
mplayer -input file=/home/pi/video_fifo bigbuckbunny320p.mp4
./s
./start_video
mplayer -input file=/home/pi/video_fifo bigbuckbunny320p.mp4
./start_video
mplayer -input file=/home/pi/video_fifo bigbuckbunny320p.mp4
./start_video
mplayer -input file=/home/pi/video_fifo bigbuckbunny320p.mp4
python video_control.py &
python video_control.py
mplayer -input file=/home/pi/video_fifo bigbuckbunny320p.mp4
python video_control.py
python video_control.py &
./start_video
./start_video.sh
chmod +x start_video.sh
./start_video.sh
python video_control.py
./start_video.sh
python video_control.py &
ps -alef | grep python
killall python
ps -alef | grep python
./start_video.sh
ps -alef | grep python
kill -9 3269
ps -alef | grep python
./start_video.sh
python fifo_test.py
python one_button.py
python four_button.py
python video_control.py
./start_video.sh
sudo shutdown -h now
sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb0 mplayer -vo sdl -framedrop –input file=/home/pi/video_fifo bigbuckbunny320p.mp4
/home/pi/video_fifo
./start_video.sh
startx
sudo shutdown -h now
ifconfig -a
startx
ifconfig -a
./start_video.sh
python one_button.py
python four_button.py
python video_control.py
startx
mplayer -input file=/home/pi/test_fifo bigbuckbunny320p.mp4
startx
sudo reboot -h now
python video_control.py
python fifo_test.py
python video_control.py
./start_video.sh
sudo shutdown -h now
mplayer -input file=/home/pi/test_fifo bigbuckbunny320p.mp4
ls
mplayer -input file=/home/pi/video_fifo bigbuckbunny320p.mp4
ls
startx
mplayer -input file=/home/pi/video_fifo bigbuckbunny320p.mp4
gpicview basketball.png
python more_video_control.py
perf --help
sudo python bounce.py
python bounce.py
sudo python bounce.py
python six_button.py
python more_video_control.py
./start_video.sh
./start_video_cb.sh
sudo apt-get install linux-perf
perf –-help
sudo apt-get install linux-perf
perf –-help
perf -v
perf_5.10 --version
sudo perf stat -e task-clock,context-switches,cpu-migrations,page-faults python calibrate_v1.py
sudo perf_5.10 stat -e task-clock,context-switches,cpu-migrations,page-faults python calibrate_v1.py
./start_video.sh
sudo perf stat python more_video_control_perf.py
sudo perf_5.10 stat python more_video_control_perf.py
sudo perf_5.10 stat python more_video_control_perf_cb.py
sudo perf_5.10 stat python more_video_control_perf.py
sudo perf_5.10 stat python more_video_control_cb_perf.py
sudo perf_5.10 stat python more_video_control_perf.py
sudo perf_5.10 stat python more_video_control_cb_perf.py
python bounce.py
./start_video.sh
./start_video_cb.sh
python bounce.py
scp
python bounce.py
sudo python bounce.py
startx
sudo reboot
python bounce.py
sudo python bounce.py
ifconfig-a
ifconfig -a
sudo python two_bounce.py
sudo python two_collide.py
python six_button.py
./start_video.sh
startx
./start_video.sh
sudo reboot
startx
./start_video_cb.sh
sudo python bounce.py
sudo python two_bounce.py
sudo python two_collide.py
sudo shutdown -h now
startx
sudo python two_collide.py
sudo shutdown -h now
startx
ls -l
cd lab2_files_f24
ls -l
cd pigame
ls -l
cd ..
cd Raspberry-Pi-Testing/
ls -l
ls -l /dev/input/touchscreen
cd ..
ls -l /dev/input/touchscreen
ls -l ../dev/input/touchscreen
cd ..
ls -l /dev/input/touchscreen
cd ~
ls -l\
cd /dev/input
ls -l /dev/input/touchscreen
ls -l touchscreen
ls -l
cd
ls –l /dev/input/touchscreen
ls -l /dev/input/touchscreen
cd /dev/input
ls
sudo ln -s event3 /dev/input/touchscreen
ls
ls -l /dev/input/touchscreen
sudo python sdl.py
cd
sudo python sdl.py
cd /home/pi/lab2_files_f24/Raspberry-Pi-Testing
sudo python sdl.py
sudo reboot
startx
cd lab2_files_f24/Raspberry-Pi-Testing/
sudo python sdl.py
cd lab2_files_f24/
sudo reboot
cd lab2_files_f24/Raspberry-Pi-Testing/
sudo python sdl.py
startx
cd lab2_files_f24/Ras
ls
cd Raspberry-Pi-Testing/
ls
ls -l /dev/input
evtest
cd /dev/input
ls -l
cat sdl.py
cd ..
cd lab2_files_f24/Raspberry-Pi-Testing
pwd
ls -l
cd ~
cd lab2_files_f24/Raspberry-Pi-Testing
cat sdl.py
ls -l /dev/fb*
ls -l /dev/input/touchscreen
cd lab2_files_f24/sudo ln -s event3 /dev/input/touchscreen
ls -l /dev/input/touchscreen
cd
cd /dev/input/
ls -l /dev/input/touchscreen
sudo ln -s event4 /dev/input/touchscreen
cd
cd lab2_files_f24/
cd Raspberry-Pi-Testing/
sudo python sdl.py
RPi_testing $ cat sdl.py
cat sdl.py
sudo python sdl.py
cd ..
ls
sudo python quit_button.py
Design a python application, quit_button.py, that displays a single ‘quit’ button on the lower edge of the screen. The program should be designed so that touching the ‘quit’
16 button ends the program and returns to the Linux console screen. Initially, the quit function may be implemented by touching at any location on the screen.cd Raspberry-Pi-Testing/
sudo python quit_button.py
sudo python screen_coordinates.py
sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/touchscreen ts_calibrate
sudo python screen_coordinates.py
sudo python quit_button.py
cd Raspberry-Pi-Testing/
sudo python quit_button.py
cd ..
sudo python quit_button.py
ls –l /dev/fb*
sudo pip3 install evdev
ls -l
ls -l /dev/input/touchscreen
sudo python sdl.py
ls -l /dev/input/touchscreen
sudo python quit_button.py
ls –l /dev/input/touchscreen
ls -l /dev/input/touchscreen
sudo python quit_button.py
sudo python sdl.py
sudo python quit_button.py
sudo python sdl.py
sudo reboot
cd lab2
cd lab2_files_f24/
sudo python quit_button.py
sudo python sdl.py
ls –l /dev/fb*
ls –l /dev/input/touchscreen
ls -l /dev/input/touchscreen
dmesg | grep EP0110M09
sudo ln -s event4 /dev/input/touchscreen
sudo python sdl.py
sudo reboot
startx
sudo python sdl.py
cd /dev/input
ls
ls -l
ls
dmesg | grep EP0110M09
ls
sudo ln -s event4 /dev/input/touchscreen
ls
sudo nano /etc/udev/rules.d/95-touchscreen.rules
sudo udevadm control --reload-rules
sudo udevadm trigger
ls -l /dev/input/touchscreen
sudo reboot
startx
ls -l /dev/input/touchscreen
cat /proc/bus/input/devices
sudo nano /etc/udev/rules.d/95-touchscreen.rules
sudo cat /etc/udev/rules.d/95-touchscreen.rules
sudo udevadm control --reload-rules
sudo udevadm trigger
ls -l /dev/input/touchscreen
sudo reboot
ls -l /dev/input/touchscreen
sudo python3 sdl.py
sudo python3 quit_button.py
sudo python3 screen_coordinates.py
sudo python3 two_button.py
sudo python3 screen_coordinates.py
sudo python3 two_button.py
sudo python3 two_collide.py
cd
sudo python3 two_collide.py
cd lab2
cd lab2_files_f24/
sudo python3 screen_coordinates.py
sudo reboot
startx
sudo python3 two_collide.py
cd lab2_files_f24/
sudo python3 two_collide.py
sudo python3 screen_coordinates.py
sudo python3 two_button.py
ls -l /dev/input/
sudo python3 two_button.py
sudo python3 sdl.py
sudo python3 two_button.py
sudo python3 control_two_collide.py
sudo shutdown -h now
startx
cd lab2_files_f24/
sudo python3 two_button.py
sudo python3 control_two_collide.py
import pygame
import pigame
import sys
import os
import RPi.GPIO as GPIO
import math
from time import sleep
from threading import Timer
from pygame.locals import *
# Colours
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
# Set environment variables for PiTFT
os.putenv('SDL_VIDEODRV', 'fbcon')
os.putenv('SDL_FBDEV', '/dev/fb1')
os.putenv('SDL_MOUSEDRV', 'dummy')
os.putenv('SDL_MOUSEDEV', '/dev/null')
os.putenv('DISPLAY', '')
# Initialize pygame and pigame for PiTFT
pygame.init() pitft = pigame.PiTft() # Initialize PiTFT
# Set up GPIO for the physical 'bail-out' button (e.g., GPIO 17)
BAILOUT_BUTTON_PIN = 17
GPIO.setmode(GPIO.BCM)
GPIO.setup(BAILOUT_BUTTON_PIN, GPIO.IN, pull_up_down=GPIO.PUD_UP)
# Function to handle GPIO bailout button press
def bailout_button_pressed(channel):
# Set up the screen
lcd = pygame.display.set_mode((320, 240))
lcd.fill(BLACK)
pygame.display.update() font_big = pygame.font.Font(None, 50)
font_small = pygame.font.Font(None, 30)
# Define buttons for Level 1 (Start/Quit)
start_button_rect = pygame.Rect(60 - 60, 240 - 50, 120, 40)
quit_button_rect = pygame.Rect(320 - 120, 240 - 50, 120, 40)
# Define buttons for Level 2 (Pause, Faster, Slower, Back)
pause_button_rect = pygame.Rect(20, 200, 80, 30)
faster_button_rect = pygame.Rect(120, 200, 80, 30)
slower_button_rect = pygame.Rect(220, 200, 80, 30)
back_button_rect = pygame.Rect(240, 10, 60, 30)
# Define animation parameters (for the balls)
ball1 = pygame.image.load("goldenball.png")
ball2 = pygame.image.load("goldenball.png")
# Scale the balls to different sizes
ball1 = pygame.transform.scale(ball1, (50, 50))
ball2 = pygame.transform.scale(ball2, (30, 30))
# Get the ball rects
ballrect1 = ball1.get_rect(topleft=(50, 50))
ballrect2 = ball2.get_rect(topleft=(200, 150))
speed1 = [6, 10]
speed2 = [4, 5]
# Flag to control animation
animation_running = False
animation_paused = False
# Set up frame rate control
clock = pygame.time.Clock()
# Draw the Level 1 buttons
def draw_level1_buttons():
# Function to handle the Level 2 menu (animation control)
def level2_menu():
# Main loop for Level 1 menu
try:
except KeyboardInterrupt:
sudo python3 control_two_collide.py
sudo python3 two_button.py
sudo reboot
startx
cd lab2_files_f24/
sudo python3 control_two_collide.py
sudo reboot
startx
cd lab2_files_f24/
sudo python3 control_two_collide.py
sudo reboot
startx
cd lab2
cd lab2_files_f24/
sudo python3 control_two_collide.py
sudo python sdl.py
sudo python quit_button.py
sudo python screen_coordinates.py
sudo python two_button.py
sudo python control_two_collide.py
sudo shutdown -h now
startx
ifconfig -a
ls
cd lab3_files_f24/
python blink.py
python blink_pwm.py
sudo shutdown -h now
startx
cd lab3_files_f24/
python blink.py
12
python blink.py
python blink_pwm.py
python motor_control.py
python two_wheel.py
sudo shutdown -h now
/usr/bin/python3
ls
ls
cd pitft_touchscreen/
ls
cd
cd lab3_files_f24/
ls
sudo python control_two_collide.py
sudo python rolling_control.py
sudo python two_wheel.py
sudo python rolling_control.py
sudo shutdown -h now
cd lab3_files_f24/
sudo python rolling_control.py
sudo python two_wheel.py
startx
cd lab3_files_f24/
sudo python two_wheel.py
sudo python rolling_control.py
sudo python two_wheel.py
sudo python rolling_control.py
sudo python control_two_collide.py
sudo python rolling_control.py
sudo python control_two_collide.py
sudo python rolling_control.py
sudo reboot
cd lab3_files_f24/
sudo python run_test.py
sudo python rolling_control
sudo python rolling_control.py
sudo python run_test.py
cd lab3_files_f24/
sudo python run_test.py
sudo shutdown -h now
startx
cd lab3_files_f24/
run_test.sh
./run_test.sh
chmod +x run_test.sh
./run_test.sh
crontab -e
sudo reboot
crontab -e
sudo reboot
sudo crontab -e
cd lab3_files_f24/
./run_test.sh
sudo reboot
crontab -e
sudo crontab -e
./run_test.sh
cd lab3_files_f24/
./run_test.sh
crontab -e
./run_test.sh
sudo python run_test.py
sudo reboot
cd lab3_files_f24/
./run_test.sh
crontab -e
sudo crontab -e
crontab -e
sudo crontab -e
sudo reboot
cd lab3_files_f24/
./run_test.sh
/home/pi/lab3_files_f24sudo raspi-config
sudo raspi-config
sudo reboot
git remot
git remote
git push
git push -f
git branch -vv
git push -f origin main
git pull
git pull origin main
git remote
git remote -vv
git fetch
git remote -vv
git branch -vv
git push
git remote
git remote remove
git remote remove origin
git remote remove
git remote
git remote add origin https://github.com/zhangxiaohuang1111/pi
git remote
git branch
git push
git remote -vv
git fetch
git push
git pull origin main --rebase
git push -f origin main
git push
git pull
git push
git pull
git rm -r --cached .
git push
git pull
git status
git push
git push -f origin main
git checkout main
git branch -vv
git push
git pull
git pull --rebase origin main
git add .
git rm -r --cached .
git commit -m "Remove all files from remote"
git rm -r --cached .
git ls-files
git push
git remote -f
git remote -v
git remote remove origin
git remote -v
git remote add origin https://github.com/zhangxiaohuang1111/pi
git remote -v
git branch -vv
git git fetch new-repo
git fetch origin
git branch
git branch -vv
git push -f origin main
git push
git remote -v
git remote -vv
git fetch
git push
git push -f origin main
git reset
git status
git remote
git branch -vv
git commit .
ls
git add .
git reset --hard
rm -f .git/index.lock
git reset --hard
git remote
git remote -vv
git fetch
git branch -vv
git init
rm -rf .gitgit push -f origin main
git push -f origin main
git remote \
git remote -v
git remote -vv
git remote
git git remote add <remote-name> <remote-url>
git remote add origin https://github.com/zhangxiaohuang1111/pi
git init
git remote add origin https://github.com/zhangxiaohuang1111/pi
git remote
git remote -vv
git push -f origin main
git fetch
git push -f origin main
git branch
git branch -vv
git push -f origin HEAD:main
git checkout -b main
git fetch
git branch -vv
git push -f origin main
git remote
git remote -v
git remote -vv
git remote -vvg
git branch -vv
git checkout main
rm -rf .git
rm -f ~/.gitconfig
ps aux | grep git
kill 8286
kill 10396
ps aux | grep git
kill -9 8286
kill -9 10396
ps aux | grep git
kill -9 10506
ps aux | grep git
kill -9 10556
ps aux | grep git
kill -9 -1
git remote
git init
git remote add origin https://github.com/zhangxiaohuang1111/pi
git remote -vv
git fetch
git branch
git fetch
git branch -vv
git add .
git commit -m "Initial commit"
git
git branch
rm -rf .git
rm -f ~/.gitconfig
git
git remote
git init
git remote
git remote
git remote -v
git remote -vv
git remorm -rf .git
rm -rf .git
rm -f ~/.gitconfig
cd pi
git remote
git remote -vv
git push
git remote add origin https://github.com/zhangxiaohuang1111/pi
git push
git remote -vv
git push -f origin main
git branch
git checkout -b main
git push -f origin main
git push -f origin HEAD:main
git add .
git commit -m "Initial commit"
git config --global user.email [email protected]
git config --global user.name zhangxiao
git commit -m "Initial commit"
git push -f origin main
git remote -vv
git push -f origin main
sudo shutdown -h now
sudo shutdown now
git
git remotee
git remote -v
git push
cd lab4_files_f24/
git clone git://git.kernel.org/pub/scm/linux/kernel/git/clrkwllms/rt-tests.git
ls
cd rt-tests/
make all
sudo make install
sudo cyclictest --help
cyclictest --help
time sudo cyclictest -p 90 -n –m -t4 -l 10000
time sudo cyclictest -p 90 -n –m -h 500 -t4 -l 300000
cd
cd lab4_files_f24/
gcc -std=c99 -o sort_v1 sort_v1.c
cd lab4_files_f24/
gcc -std=c99 -o sort_v1 sort_v1.c
htop
cd lab4_files_f24/
gcc -std=c99 -o sort_v1 sort_v1.c
perf_5.10 stat ./sort_v1
./sort_v1 &
for i in {1..30}; do ./sort_v1 & done
htop
time sudo cyclictest -p 90 -n -m -h 500 -t4 -l 300000
for i in {1..30}; do ./sort_v1 & done
time sudo cyclictest -p 90 -n -m -h 500 -t4 -l 300000
htop
htop
gcc -std=c99 -o sort_v1_modified sort_v1_modified.c
perf_5.10 stat ./sort_v1_modified
htop
python blink_v3.py
python blink_v3.py
./blink_v7 1000
sudo ./blink_v7 1000
sudo ./blink_v7 2000
sudo ./blink_v7 10000
sudo ./blink_v7 50000
sudo ./blink_v7 30000
sudo ./blink_v7 40000
sudo ./blink_v7 20000
htop
df -h
cd linux
head Makefile
df -h
ls -l
ls -l -a