<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qmk_firmware.git/drivers/avr, branch master</title>
<subtitle>forked from https://github.com/qmk/qmk_firmware</subtitle>
<id>https://git.tsegers.com/qmk_firmware.git/atom?h=master</id>
<link rel='self' href='https://git.tsegers.com/qmk_firmware.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/'/>
<updated>2020-09-17T00:42:24Z</updated>
<entry>
<title>Fix ssd1306 compilation on avr-gcc 10 (#9267)</title>
<updated>2020-09-17T00:42:24Z</updated>
<author>
<name>Joel Challis</name>
<email>git@zvecr.com</email>
</author>
<published>2020-09-17T00:42:24Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=e9b3a12c6e43444f5f6a6e3f63b5e4ece80740eb'/>
<id>urn:sha1:e9b3a12c6e43444f5f6a6e3f63b5e4ece80740eb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Hid joystick interface (#4226)</title>
<updated>2020-08-29T21:30:02Z</updated>
<author>
<name>a-chol</name>
<email>a-chol@users.noreply.github.com</email>
</author>
<published>2020-07-25T12:01:15Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=d4be07dad368c57669c88ead6c093c9e23086855'/>
<id>urn:sha1:d4be07dad368c57669c88ead6c093c9e23086855</id>
<content type='text'>
* add support for hid gamepad interface
add documentation for HID joystick
Add joystick_task to read analog axes values even when no key is pressed or release. update doc
Update docs/feature_joystick.md
Manage pin setup and read to maintain matrix scan after analog read

* Incorporates patches and changes to HID reporting

There are some patches provided by @a-chol incorporated on this commit,
and also some changes I made to the HID Report structure.

The most interesting is the one dealing with number of buttons: Linux
doesn't seem to care, but Windows requires the HID structure to be byte
aligned (that's in the spec). So if one declares 8/16/32... buttons they
should not have any issues, but this is what happens when you have 9
buttons:

```
 bits |0|1|2|3|4|5|6|7|
      |*|*|*|*|*|*|*|*| axis 0 (report size 8)
      |*|*|*|*|*|*|*|*| ...
      |*|*|*|*|*|*|*|*|
      |*|*|*|*|*|*|*|*|
      |*|*|*|*|*|*|*|*|
      |*|*|*|*|*|*|*|*|
      |*|*|*|*|*|*|*|*| axis 6
      |*|*|*|*|*|*|*|*| first 8 buttons (report size 1)
      |*| | | | | | | | last of 9 buttons, not aligned
```

So for that I added a conditonal that will add a number of reports with
size 1 to make sure it aligns to the next multiple of 8. Those reports
send dummy inputs that don't do anything aside from aligning the data.

Tested on Linux, Windows 10 and Street Fighter (where the joystick is
recognized as direct-input)

* Add save and restore of each pin used in reading joystick (AVR).
Allow output pin to be JS_VIRTUAL_AXIS if the axis is connected to Vcc
instead of an output pin from the MCU.

Fix joystick report id

Fix broken v-usb hid joystick interface. Make it more resilient to unusual settings (none multiple of eight button count, 0 buttons or 0 axes)

Correct adc reading for multiple axes. Piecewise range conversion for uncentered raw value range. Input, output and ground pin configuration per axis.

Documentation fixes

* Fix port addressing for joystick analog read

* The other required set of changes
As per the PR, the changes still holding it up.
Add onekey for testing.
Fix ARM builds.
Fix device descriptor when either axes or buttons is zero.
Add compile-time check for at least one axis or button.
Move definition to try to fix conflict.
PR review comments.
qmk cformat

* avoid float functions to compute range mapping for axis adc reading

* Remove V-USB support for now. Updated docs accordingly.

* Update tmk_core/protocol/lufa/lufa.c

Co-Authored-By: Ryan &lt;fauxpark@gmail.com&gt;

* Update tmk_core/protocol/usb_descriptor.c

Co-Authored-By: Ryan &lt;fauxpark@gmail.com&gt;

* Update tmk_core/protocol/usb_descriptor.c

Co-Authored-By: Ryan &lt;fauxpark@gmail.com&gt;

* Update tmk_core/protocol/usb_descriptor.c

Co-Authored-By: Ryan &lt;fauxpark@gmail.com&gt;

* Add support for joystick adc reading for stm32 MCUs. Fix joystick hid report sending for chibios

* Fix HID joystick report sending for ChibiOS.
Add one analog axis to the onekey:joystick keymap.
Fix pin state save and restore during joystick analog read for STM32
MCUs.

* Update tmk_core/protocol/chibios/usb_main.c

Co-Authored-By: Ryan &lt;fauxpark@gmail.com&gt;

* Update tmk_core/protocol/lufa/lufa.c

Co-Authored-By: Ryan &lt;fauxpark@gmail.com&gt;

* Add missing mcuconf.h and halconf.h to onekey:joystick keymap.
Add suggested fixes from PR.

* Switch saveState and restoreState signature to use pin_t type.
onekey:joystick : add a second axis, virtual and programmatically animated.

* Update docs/feature_joystick.md

Co-Authored-By: Ryan &lt;fauxpark@gmail.com&gt;

* Update docs/feature_joystick.md

Co-Authored-By: Ryan &lt;fauxpark@gmail.com&gt;

* Add PR corrections

* Remove halconf.h and mcuconf.h from onekey keymaps

* Change ADC_PIN to A0

Co-authored-by: achol &lt;allecooll@hotmail.com&gt;
Co-authored-by: José Júnior &lt;jose.junior@gmail.com&gt;
Co-authored-by: a-chol &lt;achol@notamail.com&gt;
Co-authored-by: Nick Brassel &lt;nick@tzarc.org&gt;
Co-authored-by: Ryan &lt;fauxpark@gmail.com&gt;</content>
</entry>
<entry>
<title>Remove inclusion of adafruit_ble.h from ssd1306.c (#9355)</title>
<updated>2020-08-29T21:30:02Z</updated>
<author>
<name>Ryan</name>
<email>fauxpark@gmail.com</email>
</author>
<published>2020-06-17T11:42:27Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=e7434c874bcd201906e26aa2ef55ddd3de9cd905'/>
<id>urn:sha1:e7434c874bcd201906e26aa2ef55ddd3de9cd905</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix incorrect delay when setting WS2812 (and similar) leds (#9302)</title>
<updated>2020-06-20T02:59:28Z</updated>
<author>
<name>Joshua Diamond</name>
<email>josh@windowoffire.com</email>
</author>
<published>2020-06-20T02:59:28Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=18e561b82cdb71bed0162b3ce4083a2d269e5336'/>
<id>urn:sha1:18e561b82cdb71bed0162b3ce4083a2d269e5336</id>
<content type='text'>
* Fix incorrect delay when setting WS2812 (and similar) leds

* Add documentation for WS2812_DELAY_MICROSECONDS

* Remove improper cast to uint8_t

Co-authored-by: Sergey Vlasov &lt;sigprof@gmail.com&gt;

* Remove unneeded cast to uint8_t and correct math

Co-authored-by: Sergey Vlasov &lt;sigprof@gmail.com&gt;

* microseconds -&gt; µs

Co-authored-by: Ryan &lt;fauxpark@gmail.com&gt;

* Make documentation better match the spec sheet.

Co-authored-by: Ryan &lt;fauxpark@gmail.com&gt;

* Rename macro to match spec sheet

* Further correction to the delay maths for the SPI case.

Co-authored-by: Joel Challis &lt;git@zvecr.com&gt;

* Move ws2812_common.h to the drivers directory

* Revert "Further correction to the delay maths for the SPI case."

This reverts commit e61b56a2cfc7dfec9992a7a3af92afa50e5b8ec0.

* Remove ws2812_setleds_pin(); consolidate ws2812.h

Co-authored-by: Sergey Vlasov &lt;sigprof@gmail.com&gt;
Co-authored-by: Ryan &lt;fauxpark@gmail.com&gt;
Co-authored-by: Joel Challis &lt;git@zvecr.com&gt;</content>
</entry>
<entry>
<title>adds support for the atmega328 (#9043)</title>
<updated>2020-06-10T21:23:11Z</updated>
<author>
<name>itsnoteasy</name>
<email>pyrosoma1@yahoo.ie</email>
</author>
<published>2020-06-10T21:23:11Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=7aa4cc9603b8cdb0ea3ede753eff7d07a86a18b0'/>
<id>urn:sha1:7aa4cc9603b8cdb0ea3ede753eff7d07a86a18b0</id>
<content type='text'>
Co-authored-by: Ryan &lt;fauxpark@gmail.com&gt;</content>
</entry>
<entry>
<title>Fix capitalisation of "GitHub" (#9184)</title>
<updated>2020-05-26T02:43:14Z</updated>
<author>
<name>Ryan</name>
<email>fauxpark@gmail.com</email>
</author>
<published>2020-05-26T02:43:14Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=e4823aadec24bca0ecfd1184562d27a49fd20544'/>
<id>urn:sha1:e4823aadec24bca0ecfd1184562d27a49fd20544</id>
<content type='text'>
</content>
</entry>
<entry>
<title>QMK-ify some GPIO macros (#8315)</title>
<updated>2020-04-30T06:24:47Z</updated>
<author>
<name>Ryan</name>
<email>fauxpark@gmail.com</email>
</author>
<published>2020-04-30T06:24:47Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=16a15c1cfcbfd0feb2c2cf1383676747e2f97d73'/>
<id>urn:sha1:16a15c1cfcbfd0feb2c2cf1383676747e2f97d73</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix AVR SPI parameter configuration, remove timeouts due to sync protocol. (#8775)</title>
<updated>2020-04-13T07:09:50Z</updated>
<author>
<name>Nick Brassel</name>
<email>nick@tzarc.org</email>
</author>
<published>2020-04-13T07:09:50Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=46e449376163779413b74f81e320a7d7bbd7e13b'/>
<id>urn:sha1:46e449376163779413b74f81e320a7d7bbd7e13b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>format code according to conventions [skip ci]</title>
<updated>2020-04-08T01:38:16Z</updated>
<author>
<name>QMK Bot</name>
<email>hello@qmk.fm</email>
</author>
<published>2020-04-08T01:38:16Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=974f83ec4b935a019bcb9c9c1e5ef57598267865'/>
<id>urn:sha1:974f83ec4b935a019bcb9c9c1e5ef57598267865</id>
<content type='text'>
</content>
</entry>
<entry>
<title>spi_master for AVR (#8299)</title>
<updated>2020-04-08T01:04:31Z</updated>
<author>
<name>Ryan</name>
<email>fauxpark@gmail.com</email>
</author>
<published>2020-04-08T01:04:31Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/qmk_firmware.git/commit/?id=400ca2d035d7bdb85c077a53b2cd85cdd04882ab'/>
<id>urn:sha1:400ca2d035d7bdb85c077a53b2cd85cdd04882ab</id>
<content type='text'>
* Change _delay_ms/us() to wait_ms/us()

* Switch to platform-agnostic GPIO macros

* Add AVR spi_master and migrate Adafruit BLE code

* Set verbose back to false

* Add clock divisor, bit order and SPI mode configuration for init

* Add start and stop functions

* Move configuration of mode, endianness and speed to `spi_start()`

* Some breaks here would be good

* Default Adafruit BLE clock divisor to 4 (2MHz on the Feather 32U4)

* Remove mode and divisor enums

* Add some docs

* No hr at EOF

* Add links in sidebar</content>
</entry>
</feed>
