$ git remote add upstream git@github.com:mbedmicro/mbed.git
$ git fetch upstream
$ git merge upstream/master
$ git push
$ git remote add xxx_work git@github.com:mbedmicro/mbed_private_xxx.git
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
""" | |
mbed SDK | |
Copyright (c) 2011-2013 ARM Limited | |
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 |
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
#! /usr/bin/env python | |
# codeing: utf-8 | |
import serial | |
def send_normal_command(cmd): | |
ser.write(cmd) | |
rcv_buf = "" | |
while rcv_buf != "OK\r\n": | |
rcv_buf = ser.readline() |
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
let last_value = 0 | |
let 傾き = 0 | |
let rainbow: neopixel.Strip = null | |
rainbow = neopixel.create(DigitalPin.P0, 30, NeoPixelMode.RGB) | |
rainbow.showRainbow(1, 360) | |
last_value = 0 | |
basic.forever(() => { | |
傾き = input.rotation(Rotation.Pitch) | |
if (last_value != 傾き) { | |
rainbow.rotate(傾き) |
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
// ---------------------------------------------------------------------------- | |
// Copyright 2016-2018 ARM Ltd. | |
// | |
// SPDX-License-Identifier: Apache-2.0 | |
// | |
// 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 |
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
#! /usr/bin/env python | |
# coding: utf-8 | |
# This script creates copy from mbed user code repository | |
# You must install Mercurial package (pip install mercurial) | |
# | |
# Usage: python clone_mbed_user_repo.py <mbed_user_name> <password> <sessionid_developer of coockei> | |
# e.g. $ python clone_mbed_user_repo.py MACRUM password kjdt3hu1loppvyyxq60nhokssa1k48ul | |
# | |
# <sessionid_developer> can be found from developer tool of the web brawser |
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
{ | |
"requires": ["bare-metal"], | |
"target_overrides": { | |
"LPC11U68" : { | |
"target.device_has_add" : ["USTICKER"], | |
"target.tickless-from-us-ticker" : true, | |
"target.boot-stack-size" :"0x400" | |
} | |
} | |
} |
DAPLink 新規ターゲットの追加
- プロジェクトの追加(既存の interface を使う場合)
projects.yaml
の projects:
の部分に追加する。
lpc11u35_xxx_if:
- *module_if
- *module_hic_lpc11u35
Create GitHub repo
https://github.com/toyowata/test_00
Create local repo
$ git init test_00
$ cd test_00