Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: PIMS_VisionIndus_IHM
Vision_Indus_IHM.h
00001 /****************************************************************************/ 00002 /* Vision Industrielle IHM */ 00003 /****************************************************************************/ 00004 /* LEnsE / Julien VILLEMEJANE / Institut d'Optique Graduate School */ 00005 /****************************************************************************/ 00006 /* Library - Vision_Indus_IHM.h file */ 00007 /****************************************************************************/ 00008 /* Tested on DISCO-F746 / 14th nov 2021 */ 00009 /****************************************************************************/ 00010 00011 #include "F746_GUI.hpp" 00012 #include "mbed.h" 00013 00014 // Color ARGB (8-8-8-8) 00015 #define COLOR_OFF 0xFF666666 00016 #define CONV_PER_MIN_US 2000 00017 #define CONV_DIR_FW 1 00018 #define CONV_DIR_RV 0 00019 00020 00021 /* Inputs and Outputs */ 00022 // Flex 00023 extern DigitalOut flex1_out; 00024 extern DigitalOut flex2_out; 00025 // Dome 00026 extern DigitalOut dome_out; 00027 // Rasant 00028 extern DigitalOut rasant_out; 00029 // Effi-RGB 00030 extern DigitalOut ringRGB_R_out; 00031 extern DigitalOut ringRGB_G_out; 00032 extern DigitalOut ringRGB_B_out; 00033 // Conveyor 00034 00035 /* Graphical objects */ 00036 extern Label title; 00037 extern Label subtitle; 00038 // All On-Off 00039 extern Button light_on; 00040 extern Button light_off; 00041 extern uint8_t all_on_active; 00042 // EFFI-Ring 00043 extern Label roundRGB; 00044 extern Button roundRGB_R; 00045 extern Button roundRGB_G; 00046 extern Button roundRGB_B; 00047 extern uint8_t roundRGB_R_active; 00048 extern uint8_t roundRGB_G_active; 00049 extern uint8_t roundRGB_B_active; 00050 // EFFI-Dome 00051 extern Label dome; 00052 extern Button dome_W; 00053 extern uint8_t dome_active; 00054 // EFFI-Dome 00055 extern Label rasant; 00056 extern Button rasant_R; 00057 extern uint8_t rasant_active; 00058 // EFFI-Flex 00059 extern Label flex1; 00060 extern Button flex1_W; 00061 extern uint8_t flex1_active; 00062 extern Button flex2_W; 00063 extern uint8_t flex2_active; 00064 // Conveyor 00065 extern Label conveyor; 00066 extern NumericLabel<int> conv_speed_lab; 00067 extern SeekBar conv_speed; 00068 00069 00070 /* Functions */ 00071 /* initIHM */ 00072 void initIHM(void); 00073 /* updateIHM */ 00074 void updateIHM(void); 00075 /* updateIHM */ 00076 void moveConveyor(char dir, int speed_us); 00077 /* updateIHM */ 00078 void stopConveyor(void);
Generated on Wed Jul 27 2022 20:52:31 by
1.7.2