Fun LED stuff

Dependencies:   LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI

Revision:
2:1be4e7457636
Parent:
0:e579c6f35abf
Child:
4:69f1e5fa2cb6
--- a/Program3_F20_Leong.s	Sun Nov 15 22:31:19 2020 +0000
+++ b/Program3_F20_Leong.s	Mon Nov 16 06:17:37 2020 +0000
@@ -46,7 +46,21 @@
                     
                     GLOBAL rotateRGBBytes
                     ; uint32_t rotateRGBBytes ( uint32_t color)
-rotateRGBBytes             
+rotateRGBBytes      MOV R1, R0
+                    MOV R2, R0
+                    MOV R3, R0
+                    
+                    LSR R1, R1, #24
+                    LSL R1, R1, #24
+                    
+                    LSL R2, #8
+                    LSR R2, #16
+                    
+                    LSL R3, #24
+                    LSR R3, #8
+                    
+                    ORR R0, R1, R2
+                    ORR R0, R0, R3       
                     BX LR
                     
                     GLOBAL setRGBBits