display initial code
This commit is contained in:
		
							parent
							
								
									f218f2ed1f
								
							
						
					
					
						commit
						5e019fef20
					
				
					 4 changed files with 36 additions and 1 deletions
				
			
		
							
								
								
									
										23
									
								
								access_control_python/access_control_mqtt.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								access_control_python/access_control_mqtt.py
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,23 @@
 | 
			
		|||
import paho.mqtt.client as mqtt
 | 
			
		||||
 | 
			
		||||
BASE_TOPIC = "/facescan"
 | 
			
		||||
 | 
			
		||||
class access_control:
 | 
			
		||||
    def __init__(self, serial_port: str):
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
    def light_on(self):
 | 
			
		||||
        pass
 | 
			
		||||
    def light_off(self):
 | 
			
		||||
        pass
 | 
			
		||||
    def get_door_state(self) -> bool:
 | 
			
		||||
        pass
 | 
			
		||||
    
 | 
			
		||||
    def get_scan_state(self) -> bool:
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
    def lock_door(self):
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
    def unlock_door(self):
 | 
			
		||||
        pass
 | 
			
		||||
							
								
								
									
										3
									
								
								access_control_python/display.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								access_control_python/display.py
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,3 @@
 | 
			
		|||
class Display:
 | 
			
		||||
    def __init__(self) -> None:
 | 
			
		||||
        pass
 | 
			
		||||
							
								
								
									
										7
									
								
								access_control_python/espmega_mqtt.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								access_control_python/espmega_mqtt.py
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,7 @@
 | 
			
		|||
class espmega_mqtt:
 | 
			
		||||
    def __init__(self) -> None:
 | 
			
		||||
        pass
 | 
			
		||||
    def write_pwm():
 | 
			
		||||
        pass
 | 
			
		||||
    def read_digital():
 | 
			
		||||
        pass
 | 
			
		||||
| 
						 | 
				
			
			@ -1,4 +1,6 @@
 | 
			
		|||
pyserial
 | 
			
		||||
line_notify
 | 
			
		||||
opencv-python
 | 
			
		||||
requests
 | 
			
		||||
requests
 | 
			
		||||
mysql-connector-python
 | 
			
		||||
paho-mqtt
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue