kopia lustrzana https://github.com/pimoroni/pimoroni-pico
				
				
				
			Merge pull request #409 from pimoroni/feature/pcf85063a-ram-byte
added ability to set/get the free ram byte on pcf85063apatch_pcf85063a
						commit
						e73119484b
					
				|  | @ -178,4 +178,12 @@ namespace pimoroni { | |||
|       address, Registers::CONTROL_2, bits); | ||||
|   } | ||||
| 
 | ||||
|   void PCF85063A::set_byte(uint8_t v) { | ||||
|     i2c->reg_write_uint8(address, Registers::RAM_BYTE, v); | ||||
|   } | ||||
| 
 | ||||
|   uint8_t PCF85063A::get_byte() { | ||||
|     return i2c->reg_read_uint8(address, Registers::RAM_BYTE); | ||||
|   } | ||||
| 
 | ||||
| } | ||||
|  | @ -133,6 +133,10 @@ namespace pimoroni { | |||
| 
 | ||||
|     // Clock output
 | ||||
|     void set_clock_output(ClockOut co); | ||||
| 
 | ||||
|     // FREE byte of RAM!!
 | ||||
|     void set_byte(uint8_t v); | ||||
|     uint8_t get_byte(); | ||||
|   }; | ||||
| 
 | ||||
| } | ||||
		Ładowanie…
	
		Reference in New Issue
	
	 lowfatcode
						lowfatcode