| <1> | 
					 To 
					setup I2C support on the Raspbian | 
				
				
					| 
					  | 
					
					
					
					
					pi@raspberrypi ~ 
					$ 
					sudo raspi-config 
					 | 
				
				
					|   | 
					  | 
				
				
					|   | 
					
					
					
					
					Select 
					5 Interfacing Options and 
					then 
					 P5 
					I2C - Enable/Disable automatic loading. 
					A prompt will appear asking Would 
					you like the ARM I2C interface to be enabled?, 
					
					select "Yes"  
					
			
					
			  
					 
					
			
					
			  | 
				
				
					|   | 
					  | 
				
				
					| 
					<2> | 
					
					
					Select "Back" 
					 
					
					Select "Finish" 
					to return to the command line and reboot your raspberry pi. 
			
			 | 
				
				
					|   | 
					  | 
				
				
					| <3> | 
					Once you have logged into your 
					Raspberry Pi from the command line, run the following 
					command to install i2c-tools | 
				
				
					|   | 
					
					
					
					
					
					pi@raspberrypi ~ 
					$ 
					
					sudo apt-get install python-smbus  | 
				
				
					|   | 
					
					
					
					
					
					pi@raspberrypi ~ 
					$ 
					
					
					sudo apt-get install i2c-tools  | 
				
				
					|   | 
					  | 
				
				
					| <4> | 
					Download the required script
					 | 
				
				
					|   | 
					
			
					
					pi@raspberrypi ~ 
					$  
					wget 
					
					
					
					https://raw.githubusercontent.com/suptronics/x750_x725-script/master/x750.sh | 
				
				
					|   | 
					  | 
				
				
					| <5> | 
					Install the script | 
				
				
					|   | 
					
			
					
					pi@raspberrypi ~ 
					$  
					
					
					sudo bash x750.sh | 
				
				
					|   | 
					  | 
				
				
					| <6> | 
					Setting up the command to turn 
					off X720 from software  | 
				
				
					|   | 
					
			
					
					pi@raspberrypi ~ 
					$  
					
					
					printf "%s\n" "alias x750off='sudo 
					x750shutdown.sh'" >> ~/.bashrc  | 
				
				
					|   | 
					  | 
				
				
					| <7> | 
					Reboot 
					the Raspberry Pi  | 
				
				
					|   | 
					
					
					
					
					
					pi@raspberrypi ~ 
					$ 
					
					sudo reboot | 
				
				
					|   | 
					  | 
				
				
					| 
					<8>  | 
					Reading 
					battery voltage and percentage   | 
				
				
					|   | 
					
					
					
					
					
					pi@raspberrypi ~ 
					$ 
			sudo python x750ups.py | 
				
				
					|   | 
					  | 
				
				
					| 
					<9>  | 
					Powering off the Raspberry Pi 
					from software  | 
				
				
					|   | 
					
					
					
					
					
					pi@raspberrypi ~ 
					$  
					
					x750off  | 
				
				
					|   | 
					  |