mirror of
				https://github.com/KevinMidboe/python-gpiozero.git
				synced 2025-10-29 17:50:37 +00:00 
			
		
		
		
	Still need to sort out threads for the internal devices to continually poll their values so that the wait-states work properly
		
			
				
	
	
		
			51 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			ReStructuredText
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			ReStructuredText
		
	
	
	
	
	
================
 | 
						|
Internal Devices
 | 
						|
================
 | 
						|
 | 
						|
.. currentmodule:: gpiozero
 | 
						|
 | 
						|
GPIO Zero also provides several "internal" devices which represent facilities
 | 
						|
provided by the operating system itself. These can be used to react to things
 | 
						|
like the time of day, or whether a server is available on the network.
 | 
						|
 | 
						|
.. warning::
 | 
						|
 | 
						|
    These devices are experimental and their API is not yet considered stable.
 | 
						|
    We welcome any comments from testers, especially regarding new "internal
 | 
						|
    devices" that you'd find useful!
 | 
						|
 | 
						|
 | 
						|
TimeOfDay
 | 
						|
=========
 | 
						|
 | 
						|
.. autoclass:: TimeOfDay
 | 
						|
 | 
						|
PingServer
 | 
						|
==========
 | 
						|
 | 
						|
.. autoclass:: PingServer
 | 
						|
 | 
						|
CPUTemperature
 | 
						|
==============
 | 
						|
 | 
						|
.. autoclass:: CPUTemperature
 | 
						|
 | 
						|
Base Classes
 | 
						|
============
 | 
						|
 | 
						|
The classes in the sections above are derived from a series of base classes,
 | 
						|
some of which are effectively abstract. The classes form the (partial)
 | 
						|
hierarchy displayed in the graph below:
 | 
						|
 | 
						|
.. image:: images/other_device_hierarchy.*
 | 
						|
 | 
						|
The following sections document these base classes for advanced users that wish
 | 
						|
to construct classes for their own devices.
 | 
						|
 | 
						|
InternalDevice
 | 
						|
==============
 | 
						|
 | 
						|
.. autoclass:: InternalDevice()
 | 
						|
    :members:
 | 
						|
 |