$ git remote add upstream [email protected]:mbedmicro/mbed.git
$ git fetch upstream
$ git merge upstream/master
$ git push
$ git remote add xxx_work [email protected]:mbedmicro/mbed_private_xxx.git
This file contains hidden or 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/local/bin/perl | |
# | |
# Copyright 2010-2012 ARM Limited. All Rights Reserved. | |
# <[email protected]> | |
# shrink_sysinc.pl - tries to remove expanded system include file from preprocessed source code | |
# | |
# Usage: shrink_sysinc.pl test.ii > test.cpp | |
# TODO: |
This file contains hidden or 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 hidden or 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 | |
#encoding=utf-8 | |
# Generate UTF-8 to Kuten code conversion table | |
# | |
# You can find the UTF-8 table here: | |
# http://ash.jp/code/unitbl21.htm | |
def print_expanded_address(table): | |
print "const uint32_t GT20L16Y1J_address_table[] = {" |
This file contains hidden or 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 | |
#encoding=utf-8 | |
# Convert image to Pwmout grayscale data for dot-matrix LED | |
# Input image format can be JPEG, PNG etc | |
from PIL import Image | |
import sys | |
if __name__ == "__main__": |
This file contains hidden or 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 hidden or 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 (c) 2016 ARM Limited | |
* 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 hidden or 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
#include "mbed.h" | |
DigitalOut myled(PA17); | |
Serial pc(PB22, PB23); | |
int main() { | |
pc.printf("hello, mbed world.\n"); | |
while(1) { | |
myled = 1; | |
wait(0.2); |
OlderNewer