Skip to content

Commit

Permalink
[Keyboard] Refactor FaceW for new BMC changes (qmk#5575)
Browse files Browse the repository at this point in the history
* use #pragma once for guards

* update readme and fix pyusb install instructions

* replace custom i2c code with QMK i2c_master

* remove unneeded code from config.h

* fix keyboard name

* remove custom matrix and i2c driver

* turn off bootmagic, turn on leds

* remove keymap in favor of userspace/community layouts keymap

* remove custom matrix

* update readme
  • Loading branch information
mechmerlin authored and drashna committed Apr 7, 2019
1 parent 5c1ef2b commit 0231caa
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 346 deletions.
7 changes: 1 addition & 6 deletions keyboards/facew/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http:https://www.gnu.org/licenses/>.
*/

#ifndef FACEW_CONFIG_H
#define FACEW_CONFIG_H
#pragma once

#include "config_common.h"

Expand All @@ -40,7 +39,3 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.
#define NO_BACKLIGHT_CLOCK
#define BACKLIGHT_LEVELS 1
#define RGBLIGHT_ANIMATIONS

#define NO_UART 1

#endif
4 changes: 2 additions & 2 deletions keyboards/facew/facew.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.
#include <avr/pgmspace.h>

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

#ifdef RGBLIGHT_ENABLE
Expand All @@ -42,7 +42,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
5 changes: 1 addition & 4 deletions keyboards/facew/facew.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http:https://www.gnu.org/licenses/>.
*/

#ifndef FACEW_H
#define FACEW_H
#pragma once

#include "quantum.h"

Expand Down Expand Up @@ -53,5 +52,3 @@ along with this program. If not, see <http:https://www.gnu.org/licenses/>.
{ KC_NO, K61, KC_NO, KC_NO, K64, K65, K66, KC_NO, K68, K69, K60}, \
{ KC_NO, K71, K72, K73, K74, K75, K76, K77, K78, KC_NO, KC_NO}, \
}

#endif
106 changes: 0 additions & 106 deletions keyboards/facew/i2c.c

This file was deleted.

27 changes: 0 additions & 27 deletions keyboards/facew/i2c.h

This file was deleted.

51 changes: 0 additions & 51 deletions keyboards/facew/keymaps/mechmerlin/keymap.c

This file was deleted.

18 changes: 0 additions & 18 deletions keyboards/facew/keymaps/mechmerlin/readme.md

This file was deleted.

106 changes: 0 additions & 106 deletions keyboards/facew/matrix.c

This file was deleted.

Loading

0 comments on commit 0231caa

Please sign in to comment.