diff options
author | Matt Strapp <msattr@gmail.com> | 2020-02-28 11:21:22 -0600 |
---|---|---|
committer | Matt Strapp <msattr@gmail.com> | 2020-02-28 11:21:22 -0600 |
commit | 5a01f28cf66a373ab10212cccfb30f71411cfc99 (patch) | |
tree | 16cf571c0dd23b70ddc4dd555d3b02218c4ef9f2 /Lab_2B.X/lab2b_header.h | |
parent | Fix small things (diff) | |
download | ee2361-5a01f28cf66a373ab10212cccfb30f71411cfc99.tar ee2361-5a01f28cf66a373ab10212cccfb30f71411cfc99.tar.gz ee2361-5a01f28cf66a373ab10212cccfb30f71411cfc99.tar.bz2 ee2361-5a01f28cf66a373ab10212cccfb30f71411cfc99.tar.lz ee2361-5a01f28cf66a373ab10212cccfb30f71411cfc99.tar.xz ee2361-5a01f28cf66a373ab10212cccfb30f71411cfc99.tar.zst ee2361-5a01f28cf66a373ab10212cccfb30f71411cfc99.zip |
Fix small things
Diffstat (limited to '')
-rw-r--r-- | Lab_2B.X/lab2b_header.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/Lab_2B.X/lab2b_header.h b/Lab_2B.X/lab2b_header.h index ccf2237..15b6b88 100644 --- a/Lab_2B.X/lab2b_header.h +++ b/Lab_2B.X/lab2b_header.h @@ -4,10 +4,20 @@ #ifdef __cplusplus
extern "C" {
#endif
-void wait_100us(void);
-void wait_1ms(void);
-void write_0(void);
-void write_1(void);
+ void wait_100us(void);
+ void wait_1ms(void);
+ void write_0(void);
+ void write_1(void);
+ //DEFINTIONS
+ void writeColor(int r, int g, int b);
+ void loop(void);
+ void delay(int delay_in_ms);
+ uint32_t packColor(unsigned char Red, unsigned char Grn, unsigned char Blu);
+ unsigned char getR(uint32_t RGBval);
+ unsigned char getG(uint32_t RGBval);
+ unsigned char getB(uint32_t RGBval);
+ void writePacCol(uint32_t PackedColor);
+ uint32_t Wheel(unsigned char WheelPos);
#ifdef __cplusplus
}
#endif
|