Skip to content

Commit

Permalink
[Keyboard] Refactor budget96 to remove custom i2c code in favor of QM…
Browse files Browse the repository at this point in the history
…K i2c_master (qmk#5571)

* remove custom i2c code in favor of QMK i2c_master

* fix readme

* disable bootmagic as it doesn't work on bmc boards
  • Loading branch information
mechmerlin authored and drashna committed Apr 7, 2019
1 parent b8f7834 commit a8e3462
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 142 deletions.
4 changes: 2 additions & 2 deletions keyboards/donutcables/budget96/budget96.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <avr/pgmspace.h>

#include "action_layer.h"
#include "i2c.h"
#include "i2c_master.h"
#include "quantum.h"

__attribute__ ((weak))
Expand All @@ -45,7 +45,7 @@ void rgblight_set(void) {
}

i2c_init();
i2c_send(0xb0, (uint8_t*)led, 3 * RGBLED_NUM);
i2c_transmit(0xb0, (uint8_t*)led, 3 * RGBLED_NUM, 100);
}
#endif

Expand Down
6 changes: 0 additions & 6 deletions keyboards/donutcables/budget96/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define NO_BACKLIGHT_CLOCK
#define BACKLIGHT_LEVELS 1
#define RGBLIGHT_ANIMATIONS

// Set bootmagic lite key to the key commonly programmed as Esc.
#define BOOTMAGIC_LITE_ROW 5
#define BOOTMAGIC_LITE_COLUMN 0

/* key combination for command */
106 changes: 0 additions & 106 deletions keyboards/donutcables/budget96/i2c.c

This file was deleted.

24 changes: 0 additions & 24 deletions keyboards/donutcables/budget96/i2c.h

This file was deleted.

4 changes: 2 additions & 2 deletions keyboards/donutcables/budget96/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Make example for this keyboard (after setting up your build environment):

Flashing

**Reset Key:** Hold down the key located at `K00`, commonly programmed as left control while plugging in the keyboard. You may also hold down the key located at `K50`, commonly programmed as the `Esc` key.
**Reset Key:** Hold down the key located at `K00`, commonly programmed as left control while plugging in the keyboard.

ps2avr(GB) boards use an atmega32a microcontroller and a different bootloader. It is not flashable using the regular QMK methods.

Expand All @@ -34,7 +34,7 @@ macOS:
```
3. Install the following packages:
```
brew install python
brew install python3
pip3 install pyusb
brew install --HEAD https://raw.githubusercontent.com/robertgzr/homebrew-tap/master/bootloadhid.rb
Expand Down
4 changes: 2 additions & 2 deletions keyboards/donutcables/budget96/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ F_CPU = 12000000
BOOTLOADER = bootloadHID

# build options
BOOTMAGIC_ENABLE = lite
BOOTMAGIC_ENABLE = no
MOUSEKEY_ENABLE = yes
EXTRAKEY_ENABLE = yes
CONSOLE_ENABLE = yes
Expand All @@ -43,7 +43,7 @@ RGBLIGHT_CUSTOM_DRIVER = yes
OPT_DEFS = -DDEBUG_LEVEL=0

# custom matrix setup
SRC = i2c.c
SRC = i2c_master.c

# programming options
PROGRAM_CMD = ./util/atmega32a_program.py $(TARGET).hex

0 comments on commit a8e3462

Please sign in to comment.