Skip to content

Instantly share code, notes, and snippets.

@strobo
strobo / zephyr_flash_rw_sample.c
Created September 15, 2019 08:58
Zephyr Native POSIX Flash driver read and write sample
#include <zephyr.h>
#include <sys/printk.h>
#include <device.h>
#include <drivers/flash.h>
// How to build.
// cd ~/zephyrproject
// mkdir app
// cd app
// cp -r ../../zephyr/samples/hello_world/ .
@strobo
strobo / install_zephyr_sdk.bash
Last active September 3, 2019 04:40
Update SDK 0.10.3
#!/bin/bash
set -Ceu
# Initial setup
SDK_INSTALLER_URL="https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.10.3/zephyr-sdk-0.10.3-setup.run"
SDK_INSTALLER="zephyr-sdk-0.10.3-setup.run"
sudo apt update
#!/bin/bash
set -Ceu
install_deb() {
local _url
local _dir
# set url
_url=$1
@strobo
strobo / Nintendo_Wireless_Keyboard.kcm
Created June 7, 2012 10:52
Android Key Assign for Nintendo_Wireless_Keyboard - thank you hiromo6
# Copyright (C) 2010 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,