- DS-5を終了させる
- 以下のファイルをエディタで開く
C:\Users\xxxxxx\AppData\Roaming\ARM\DS-5\workbench\configuration\config.ini
上記ディレクトリ名は、私の設定です(ユーザー名はログインユーザになります)。
- config.iniの最後の行に以下を追加する
#!/usr/local/bin/perl | |
# | |
# Copyright 2010-2012 ARM Limited. All Rights Reserved. | |
# <toyomasa.watarai@arm.com> | |
# shrink_sysinc.pl - tries to remove expanded system include file from preprocessed source code | |
# | |
# Usage: shrink_sysinc.pl test.ii > test.cpp | |
# TODO: |
#!/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[] = {" |
#!/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__": |
/* | |
* 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 | |
* |
#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); |
yotta がインストール(アップデート)できない場合の対処方法(OS X)
OS X版で yotta をアップデートしようとしたのですが、以下のようなエラーが出て、インストールできませんでした。
$ sudo pip install yotta
# snip
Requirement already satisfied (use --upgrade to upgrade): Cython in /Library/Python/2.7/site-packages (from hidapi->pyOCD<1.0,>=0.3->valinor<1.0,>=0.0.0->yotta)
Installing collected packages: setuptools, enum34, ipaddress, idna, pycparser, cffi, cryptography, PyJWT, pathlib, functools32, jsonschema, argcomplete, mbed-test-wrapper, pyyaml, intelhex, hidapi, pyOCD, argparse, xmltodict, project-generator-definitions, project-generator, pyelftools, valinor, jsonpointer, yotta
/* mbed Microcontroller Library | |
* Copyright (c) 2006-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 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
/* mbed Microcontroller Library | |
* Copyright (c) 2006-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 | |
* | |
* Unless required by applicable law or agreed to in writing, software |