adding Hadron v3 keyboard, QWIIC devices support, haptic feedback support (#4462)
* add initial support for hadron ver3 * add initial support for hadron ver3 * pull qwiic support for micro_led to be modified for use in hadron's 64x24 ssd1306 oled display * initial work on OLED using qwiic driver * early work to get 128x32 oled working by redefining qwiic micro oled parameters. Currently working, but would affect qwiic's micro oled functionality * moved oled defines to config.h and added ifndef to micro_oled driver * WORKING :D - note, still work in progress to get the start location correct on the 128x32 display. * added equation to automatically calculate display offset based on screen width * adding time-out timer to oled display * changed read lock staus via read_led_state * lock indications fixes * Added scroll lock indication to oled * add support for DRV2605 haptic driver * Improve readabiity of DRV2605 driver. -added typedef for waveform library -added unions for registers * Update keyboards/hadron/ver2/keymaps/default/config.h Co-Authored-By: ishtob <ishtob@gmail.com> * Update keyboards/hadron/ver2/keymaps/default/config.h Co-Authored-By: ishtob <ishtob@gmail.com> * Update keyboards/hadron/ver2/keymaps/default/config.h Co-Authored-By: ishtob <ishtob@gmail.com> * Update keyboards/hadron/ver2/keymaps/default/config.h Co-Authored-By: ishtob <ishtob@gmail.com> * Fixes for PR * PR fixes * fix old persistent layer function to use new set_single_persistent_default_layer * fix issues with changing makefile defines that broken per-key haptic pulse * Comment fixes * Add definable parameter and auto-calibration based on motor choice
This commit is contained in:
		
							parent
							
								
									4bb28d2df0
								
							
						
					
					
						commit
						4099536c0e
					
				
					 51 changed files with 5534 additions and 298 deletions
				
			
		| 
						 | 
				
			
			@ -32,7 +32,7 @@
 | 
			
		|||
 | 
			
		||||
static uint8_t i2c_address;
 | 
			
		||||
 | 
			
		||||
// This configures the I2C clock to 400Mhz assuming a 72Mhz clock
 | 
			
		||||
// This configures the I2C clock to 400khz assuming a 72Mhz clock
 | 
			
		||||
// For more info : https://www.st.com/en/embedded-software/stsw-stm32126.html
 | 
			
		||||
static const I2CConfig i2cconfig = {
 | 
			
		||||
  STM32_TIMINGR_PRESC(15U) |
 | 
			
		||||
| 
						 | 
				
			
			@ -45,10 +45,14 @@ static const I2CConfig i2cconfig = {
 | 
			
		|||
__attribute__ ((weak))
 | 
			
		||||
void i2c_init(void)
 | 
			
		||||
{
 | 
			
		||||
  setPinInput(B6); // Try releasing special pins for a short time
 | 
			
		||||
  setPinInput(B7);
 | 
			
		||||
  chThdSleepMilliseconds(10);
 | 
			
		||||
  //palSetGroupMode(GPIOB, GPIOB_PIN6 | GPIOB_PIN7, 0, PAL_MODE_INPUT);
 | 
			
		||||
 | 
			
		||||
  // Try releasing special pins for a short time
 | 
			
		||||
  palSetPadMode(GPIOB, 6, PAL_MODE_INPUT);
 | 
			
		||||
  palSetPadMode(GPIOB, 7, PAL_MODE_INPUT);
 | 
			
		||||
 | 
			
		||||
  chThdSleepMilliseconds(10);
 | 
			
		||||
 
 | 
			
		||||
  palSetPadMode(GPIOB, 6, PAL_MODE_ALTERNATE(4) | PAL_STM32_OTYPE_OPENDRAIN | PAL_STM32_PUPDR_PULLUP);
 | 
			
		||||
  palSetPadMode(GPIOB, 7, PAL_MODE_ALTERNATE(4) | PAL_STM32_OTYPE_OPENDRAIN | PAL_STM32_PUPDR_PULLUP);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -34,6 +34,7 @@ void i2c_init(void);
 | 
			
		|||
uint8_t i2c_start(uint8_t address);
 | 
			
		||||
uint8_t i2c_transmit(uint8_t address, uint8_t* data, uint16_t length, uint16_t timeout);
 | 
			
		||||
uint8_t i2c_receive(uint8_t address, uint8_t* data, uint16_t length, uint16_t timeout);
 | 
			
		||||
uint8_t i2c_transmit_receive(uint8_t address, uint8_t * tx_body, uint16_t tx_length, uint8_t * rx_body, uint16_t rx_length);
 | 
			
		||||
uint8_t i2c_writeReg(uint8_t devaddr, uint8_t regaddr, uint8_t* data, uint16_t length, uint16_t timeout);
 | 
			
		||||
uint8_t i2c_readReg(uint8_t devaddr, uint8_t* regaddr, uint8_t* data, uint16_t length, uint16_t timeout);
 | 
			
		||||
uint8_t i2c_stop(uint16_t timeout);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue