mirror of
https://github.com/zsa/qmk_firmware.git
synced 2026-01-18 03:19:45 +00:00
* Add he-IL (Hebrew) Translation * Add Hebrew to SUMMARY * Try RTL * Add RTL text * Lowercase folder names * Update lowercase folder in Summary * Adding getting_started_introduction.md * Add Proton C Conversion translation * Add Becoming a QMK Collaborator Translation * Add FAQ translation * Add Hardware translation * Documentation Best Practices translation * Add FAQ General translation * Align docs RTL * Add Becoming a QMK Collaborator Translation * Translate Getting Started - Getting Help * Translate Getting Started With Github * Code sections should be alligned to the left * Code sections should be alligned to the left * Code sections should be alligned to the left * Revert "Code sections should be alligned to the left" This reverts commit d0c46e90c4915ceebe7c5182aca2b75afad25df0. * Add Markdown aligned to the left * Update quantum_keycodes.md * Update proton_c_conversion.md * Translate Newbs Learn More Resourses
1.6 KiB
1.6 KiB
המרה של לוח להשתמש ב-Proton C
אם לוח נתמך ב-QMK משתמש בלוח Pro Micro (או כל לוח נתמך) ואתם רוצים להשתמש ב-Proton C, ניתן לייצר את החומרה ע”י הוספה של הפקודהCONVERT_TO_PROTON_C=yes (או CTPC=yes) לפקודת
make, כמו כאן:
make 40percentclub/mf68:default CTPC=yes
ניתן להוסיף את אותו ארגומנט לקובץ rules.mk במיפוי המקשים
שלכם, שתיצור את אותה התוצאה.
CONVERT_TO_PROTON_C שניתן להשתמש בו בקוד
שלכם באמצעות פקודת #ifdef, כמו כאן:
#ifdef CONVERT_TO_PROTON_C
// Proton C code
#else
// Pro Micro code
#endif
לפני שתצליחו לקמפל, יכול להיות שתקבלו שגיאות שונות לגבי
PORTB/DDRB, וכו’ שלא הוגדרו, אם כך, תצטרכו להמיר את קודי
המקלדת להשתמש ב - בקרי GPIO
שיעבדו עבור ARM וגם AVR. הדבר לא אמור להשפיע על הבילדים של AVR בכלל.
config.h:
#define CONVERT_TO_PROTON_C_RXLED