Ben Gordon
/
ELEC351_GroupA-branch1
Troubleshooting
Embed:
(wiki syntax)
Show/hide line numbers
Display.hpp
00001 #ifndef _DISPLAY_HPP 00002 #define _DISPLAY_HPP 00003 #include "mbed.h" 00004 #include "DataTypes.hpp" 00005 #include "LCD.hpp" 00006 00007 class Display{ 00008 public: 00009 Display(PinName rs, PinName e, PinName d4, PinName d5, PinName d6, PinName d7) : _lcd(rs,e,d4,d5,d6,d7) {} 00010 void INIT(); 00011 void clear(); 00012 void pageOne(); 00013 void pageTwo(); 00014 00015 void setTemperature(S_BYTE temp); 00016 void setLightLevel(U_BYTE light); 00017 void setPressure(U_BYTE pres); 00018 private: 00019 char _temperature[4]; 00020 char _lightLevel[5]; 00021 char _pressure[6]; 00022 private: 00023 LCD _lcd; 00024 }; 00025 #endif
Generated on Fri Jul 15 2022 05:30:30 by 1.7.2