This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/flash.h b/flash.h | |
index dfda9d2..48fe551 100644 | |
--- a/flash.h | |
+++ b/flash.h | |
@@ -30,6 +30,7 @@ | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stddef.h> | |
+#include <sys/io.h> | |
#include <stdarg.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/target/linux/brcm47xx/base-files/etc/board.d/01_detect b/target/linux/brcm47xx/base-files/etc/board.d/01_detect | |
index 91ac16e..ad75ba9 100755 | |
--- a/target/linux/brcm47xx/base-files/etc/board.d/01_detect | |
+++ b/target/linux/brcm47xx/base-files/etc/board.d/01_detect | |
@@ -152,7 +152,8 @@ detect_by_model() { | |
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" | |
;; | |
- "Asus WL700") | |
+ "Asus WL700" | \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO ] Kivy v1.9.0-dev | |
[INFO ] [Python ] v2.7.7 (default, Aug 20 2014, 05:30:55) | |
[GCC 4.7.3] | |
[INFO ] [Factory ] 172 symbols loaded | |
[DEBUG ] [Cache ] register <kv.lang> with limit=None, timeout=Nones | |
[DEBUG ] [Cache ] register <kv.image> with limit=None, timeout=60s | |
[DEBUG ] [Cache ] register <kv.atlas> with limit=None, timeout=Nones | |
[INFO ] [Image ] Providers: img_tex, img_dds, img_pygame, img_pil, img_gif (img_sdl2, img_ffpyplayer ignored) | |
[DEBUG ] [Cache ] register <kv.texture> with limit=1000, timeout=60s | |
[DEBUG ] [Cache ] register <kv.shader> with limit=1000, timeout=3600s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO ] Kivy v1.9.0-dev | |
[INFO ] [Python ] v2.7.7 (default, Aug 21 2014, 21:42:39) | |
[GCC 4.7.3] | |
[INFO ] [Factory ] 172 symbols loaded | |
[DEBUG ] [Cache ] register <kv.lang> with limit=None, timeout=Nones | |
[DEBUG ] [Cache ] register <kv.image> with limit=None, timeout=60s | |
[DEBUG ] [Cache ] register <kv.atlas> with limit=None, timeout=Nones | |
/opt/venv-kivy-dev/lib/python2.7/site-packages/kivy/core/image/img_pygame.py:13: RuntimeWarning: import joystick: /usr/lib/python2.7/site-packages/pygame/joystick.so: undefined symbol: SDL_JoystickNumHats | |
(ImportError: /usr/lib/python2.7/site-packages/pygame/joystick.so: undefined symbol: SDL_JoystickNumHats) | |
import pygame |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
os.environ['KIVY_GLES_LIMITS'] = '0' | |
from cairo import Context, ImageSurface, FORMAT_ARGB32, FONT_SLANT_NORMAL, FONT_WEIGHT_NORMAL | |
from kivy.app import App | |
from kivy.core.image import ImageData | |
from kivy.graphics import Color, Rectangle | |
from kivy.graphics.opengl_utils import gl_has_texture_format, gl_get_texture_formats, gl_has_texture_native_format | |
from kivy.graphics.texture import Texture | |
from kivy.uix.widget import Widget |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.uix.gridlayout import GridLayout | |
from kivy.uix.treeview import TreeView, TreeViewLabel | |
Builder.load_string(''' | |
<Test>: | |
rows: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// UART эхо с использованием прерываний | |
// avr-gcc, arduino nano AtMega168 | |
#include <avr/interrupt.h> | |
#include <avr/io.h> | |
#include <util/delay.h> | |
#define BAUD 38400 // скорость UART | |
#include <util/setbaud.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Пример использования прерывания по изменению состояния входа | |
// avr-gcc, arduino nano AtMega168 | |
#include <avr/interrupt.h> | |
#include <avr/io.h> | |
#define IN_PIN _BV(3) // button pin B3 (arduino nano - D11) | |
#define LED _BV(5) // arduino LED | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Пример вывода в UART, используя прерывание при освобождении буфера | |
// avr-gcc, arduino nano AtMega168 | |
#include <avr/interrupt.h> | |
#include <avr/io.h> | |
#include <util/delay.h> | |
#define BAUD 38400 // скорость UART | |
#include <util/setbaud.h> |