mbed_library_study_meeting_v1.0.key

Size: px
Start display at page:

Download "mbed_library_study_meeting_v1.0.key"

Transcription

1 mbed _mbed version 1.0, 07-Nov Tedd OKANO mbed (^^; 1 mbed

2 TEDD OKANO 10 I 2 C

3 mbed mbed.org 3 mbed mbed.org mbed

4 #include "mbed.h" #include "SB1602E.h" SB1602E lcd( p28, p27 ); // SDA, SCL int main() { lcd.printf( 0, "Hello world!\r" ); lcd.printf( 1, "pi = %.6f\r", ); 4 mbed-sdk(mbed )

5 mbed-sdk (mbed ) C/C++ Programs Runtime Platforms (Java ME Embedded,.NET MF, elua, etc) mbed Components Accelerometer, GPS, Wifi, Cellular, Compass,... mbed SDK Runtime, Memory Model, Peripheral APIs, STDIO, RTOS, Platform features MCU Vendor Driver Libraries Toolchain C libraries CMSIS-CORE RTOS (GPIO ) (UART I2C..) ( )

6 / 6

7 GUI 7

8 8

9 HelloWorld 9 HelloWorld

10 .. 10 ( )

11 11

12 LM75B : I 2 C 12 2 I C LM75B LM75B mbed.org

13 13

14 14 mbed.org

15 Revisions (Revision History) Commit (Commit Changes) ( ) Format Code 15 mbed.org ( )

16 Revisions Switch.. 16 Rivision History (1) (2) Revisions (3) (4) Switch

17 #include "mbed.h" // LM75B I2C slave address #define ADDRESS_LM75B 0x90 // LM75B registers #define LM75B_Conf 0x01 #define LM75B_Temp 0x00 #define LM75B_Tos 0x03 #define LM75B_Thyst 0x02 I2C i2c( p28, p27 ); void init( void ); float read_temp( void ); int main() { init(); while(1) { printf( "temp = %7.3f\r\n", read_temp() ); wait( 1 ); read_temp() ( ) void init( void ) { char command[ 2 ]; command[ 0 ] = LM75B_Conf; command[ 1 ] = 0x00; 0x90 0x01 0x00 i2c.write( ADDRESS_LM75B, command, 2 ); float read_temp( void ) { char command[ 2 ]; command[ 0 ] = LM75B_Temp; 0x90 0x00 2 i2c.write( ADDRESS_LM75B, command, 1 ); // Send command string i2c.read( ADDRESS_LM75B, command, 2 ); // read two bytes data return ( (float)( (command[ 0 ] << 8) command[1] ) / ); 17 mbed-sdk C I 2 C mbed-sdk API _Hello ( )

18 _Hello ( ) test_lm75b test_lm75b_hello LM75B test_lm75b ( ) 18

19 19 C++

20 20

21 .cpp.h 21.cpp.h.h.cpp main.cpp main ( )

22 .. / Export( ) / 22 New Library New FIle

23 #include "mbed.h" // LM75B I2C slave address #define ADDRESS_LM75B 0x90 // LM75B registers #define LM75B_Conf 0x01 #define LM75B_Temp 0x00 #define LM75B_Tos 0x03 #define LM75B_Thyst 0x02 I2C i2c( p28, p27 ); void init( void ); float read_temp( void ); int main() { init(); while(1) { printf( "temp = %7.3f\r\n", read_temp() ); wait( 1 ); void init( void ) { char command[ 2 ]; command[ 0 ] = LM75B_Conf; command[ 1 ] = 0x00; i2c.write( ADDRESS_LM75B, command, 2 ); float read_temp( void ) { char command[ 2 ]; command[ 0 ] = LM75B_Temp; main.cpp i2c.write( ADDRESS_LM75B, command, 1 ); // Send command string i2c.read( ADDRESS_LM75B, command, 2 ); // read two bytes data return ( (float)( (command[ 0 ] << 8) command[1] ) / ); #include "mbed.h" #include "test_lm75b.h" test_lm75b temp( p28, p27 ); int main() #include "mbed.h" { while(1) { // LM75B I2C slave address printf( "temp = %7.3f\r\n", temp.read() #define ); ADDRESS_LM75B 0x90 wait( 1 ); #include "test_lm75b.h" test_lm75b::test_lm75b( PinName sda, PinName scl ) : i2c( sda, scl ) { init(); test_lm75b::~test_lm75b() { void test_lm75b::init( void ) { char command[ 2 ]; command[ 0 ] = LM75B_Conf; command[ 1 ] = 0x00; i2c.write( ADDRESS_LM75B, command, 2 ); float test_lm75b::read( void ) { char command[ 2 ]; main.cpp // LM75B registers #define LM75B_Conf 0x01 #define LM75B_Temp 0x00 #define LM75B_Tos 0x03 #define LM75B_Thyst 0x02 test_lm75b.h class test_lm75b { public: test_lm75b( PinName sda, PinName scl ); ~test_lm75b(); void init( void ); float read( void ); private: I2C i2c; ; test_lm75b.cpp command[ 0 ] = LM75B_Temp; i2c.write( ADDRESS_LM75B, command, 1 ); // Send command string i2c.read( ADDRESS_LM75B, command, 2 ); // read two bytes data return ( (float)( (command[ 0 ] << 8) command[1] ) / ); 23 3 main.cpp.h.cpp

24 #include "mbed.h" // LM75B I2C slave address #define ADDRESS_LM75B 0x90 test_lm75b.h // LM75B registers #define LM75B_Conf 0x01 #define LM75B_Temp 0x00 #define LM75B_Tos 0x03 #define LM75B_Thyst 0x02 class test_lm75b { public: test_lm75b( PinName sda, PinName scl ); ~test_lm75b(); void init( void ); float read( void ); private: I2C i2c; ; I 2 C #include "test_lm75b.h" test_lm75b::test_lm75b( PinName sda, PinName scl ) : i2c( sda, scl ) { init(); test_lm75b::~test_lm75b() { void test_lm75b::init( void ) { char command[ 2 ]; command[ 0 ] = LM75B_Conf; command[ 1 ] = 0x00; i2c.write( ADDRESS_LM75B, command, 2 ); float test_lm75b::read( void ) { char command[ 2 ]; command[ 0 ] = LM75B_Temp; test_lm75b.cpp i2c.write( ADDRESS_LM75B, command, 1 ); // Send command string i2c.read( ADDRESS_LM75B, command, 2 ); // read two bytes data return ( (float)( (command[ 0 ] << 8) command[1] ) / ); 24.h ( ) (public) (private).cpp init() read()

25 .. main() main() 25 I 2 C main ( )

26 26 C++

27 27

28 #include "mbed.h" // LM75B I2C slave address #define ADDRESS_LM75B 0x90 // LM75B registers #define LM75B_Conf 0x01 #define LM75B_Temp 0x00 #define LM75B_Tos 0x03 #define LM75B_Thyst 0x02 test_lm75b.h 3 0x90 class test_lm75b { public: test_lm75b( PinName sda, PinName scl, char address = ADDRESS_LM75B ); ~test_lm75b(); void init( void ); float read( void ); operator float( void ); private: I2C i2c; char adr; ; test_lm75b.cpp... test_lm75b::test_lm75b( PinName sda, PinName scl, char address ) : i2c( sda, scl ), adr( address ) { init();... 28

29 main.cpp #include "mbed.h" #include "test_lm75b.h" test_lm75b temp0( p28, p27, 0x90 ); test_lm75b temp1( p28, p27, 0x92 ); int main() { while(1) { printf( "temp0 = %7.3f\r\n", temp0.read() ); printf( "temp1 = %7.3f\r\n", temp1.read() ); wait( 1 ); =0x90 =0x x90 0x92

30 I2C 30

31 #include "mbed.h" #include "test_lm75b.h" test_lm75b temp0( p28, p27, 0x90 ); test_lm75b temp1( p28, p27, 0x92 ); Q A 2 I2C mbed SDK int main() { while(1) { printf( "temp0 = %7.3f\r\n", temp0.read() ); printf( "temp1 = %7.3f\r\n", temp1.read() ); wait( 1 ); 31 (I2C ) mbed-sdk

32 test_lm75b test_lm75b I2C I2C 400kHz 100kHz (..) 32 2 ( I C)

33 test_lm75b test_lm75b I2C test_lm75b I2C 1 33

34 #include "mbed.h" #include "test_lm75b.h" test_lm75b tmp[] = { test_lm75b( p28, p27, 0x90 ), test_lm75b( p28, p27, 0x92 ), test_lm75b( p28, p27, 0x93 ), test_lm75b( p28, p27, 0x94 ), test_lm75b( p28, p27, 0x96 ), test_lm75b( p28, p27, 0x98 ), test_lm75b( p28, p27, 0x9A ), test_lm75b( p28, p27, 0x9C ) ; int main() { for ( int i = 0; i < 4; i++ ) { printf( "temp = %7.3f\r\n", (float)(tmp[ i ]) ); wait( 1 );.. #include "mbed.h" #include "test_lm75b.h" I2C i2c( p28, p27 ); test_lm75b tmp[] = { test_lm75b( i2c, 0x90 ), test_lm75b( i2c, 0x92 ), test_lm75b( i2c, 0x93 ), test_lm75b( i2c, 0x94 ), test_lm75b( i2c, 0x96 ), test_lm75b( i2c, 0x98 ), test_lm75b( i2c, 0x9A ), test_lm75b( i2c, 0x9C ) ; int main() { i2c.frequency( 10 * 1000 ); while(1) { for ( int i = 0; i < 4; i++ ) { printf( "temp = %7.3f\r\n, (float)(tmp[ i ]) ); wait( 1 ); I 2 C 34.. ( )..

35 #include "mbed.h" #include "test_lm75b.h" I2C i2c( p28, p27 ); test_lm75b temp( i2c ); int main() { float t; i2c.frequency( 400 * 1000 ); while(1) { t = temp; printf( "temp = %7.3f\r\n", t ); wait( 1 ); main.cpp 35 I2C main

36 I2C i2c( p28, p27 ); test_lm75b temp( i2c ); int main() { float t; i2c.frequency( 400 * 1000 ); while(1) { t = temp; printf( "temp = %7.3f\r\n", t ); wait( 1 ); main.cpp class test_lm75b { public: test_lm75b( I2C i2c_obj, char address = ADDRESS_LM75B ); ~test_lm75b(); void init( void ); float read( void ); operator float( void ); private: I2C i2c; char adr; ; test_lm75b.h #include "test_lm75b.h" test_lm75b::test_lm75b( I2C i2c_obj, char address ) : i2c( i2c_obj ), adr( address ) { init(); test_lm75b.cpp 36

37 orz 400kHz 100kHz 37 I2C orz

38 test_lm75b test_lm75b I2C I2C I2C orz 38

39 I2C i2c( p28, p27 ); test_lm75b temp( i2c ); int main() { float t; i2c.frequency( 400 * 1000 ); while(1) { t = temp; printf( "temp = %7.3f\r\n", t ); wait( 1 ); main.cpp class test_lm75b { public: test_lm75b( I2C i2c_obj, char address = ADDRESS_LM75B ); ~test_lm75b(); void init( void ); float read( void ); operator float( void ); private: I2C i2c; char adr; ; test_lm75b.h #include "test_lm75b.h" test_lm75b::test_lm75b( I2C i2c_obj, char address ) : i2c( i2c_obj ), adr( address ) { init(); test_lm75b.cpp test_lm75b I2C m( )m 39 10

40 40

41 I2C i2c( p28, p27 ); test_lm75b temp( i2c ); int main() { float t; i2c.frequency( 400 * 1000 ); while(1) { t = temp; printf( "temp = %7.3f\r\n", t ); wait( 1 ); main.cpp class test_lm75b { public: test_lm75b( I2C &i2c_obj, char address = ADDRESS_LM75B ); ~test_lm75b(); void init( void ); float read( void ); operator float( void ); private: I2C &i2c; char adr; ; test_lm75b.h #include "test_lm75b.h" test_lm75b::test_lm75b( I2C &i2c_obj, char address ) : i2c( i2c_obj ), adr( address ) { init(); test_lm75b.cpp I2C 41 main I2C I2C

42 100kHz 400kHz 42

43 43

44 2 I2C C++ (^^) 44 2

45 I2C I2C I2C I2C I2C 45

46 ... class test_lm75b { public: test_lm75b( PinName sda, PinName scl, char address = ADDRESS_LM75B ); test_lm75b( I2C &i2c_obj, char address = ADDRESS_LM75B ); ~test_lm75b(); void init( void ); float read( void ); operator float( void ); private: I2C *i2c_p; I2C &i2c; char adr; ; I2C test_lm75b.h 2... test_lm75b::test_lm75b( PinName sda, PinName scl, char address ) { : i2c_p( new I2C( sda, scl ) ), i2c( *i2c_p ), adr( address ) init(); test_lm75b::test_lm75b( I2C &i2c_obj, char address ) : i2c_p( NULL ), i2c( i2c_obj ), adr( address ) { init(); test_lm75b::~test_lm75b() { if ( NULL!= i2c_p ) delete i2c_p;... I2C test_lm75b.cpp I2C I2C I2C 46 ( C++..) I2C i2c_p I2C i2c_p NULL I2C i2c_p!= NULL i2c_p == NULL

47 #include "mbed.h" #include "test_lm75b.h" test_lm75b temp0( p28, p27 ); I2C i2c( p28, p27 ); test_lm75b temp1( i2c ); int main() { float t0; float t1; i2c.frequency( 400 * 1000 ); while(1) { t0 = temp0; t1 = temp1; printf( "temp = %7.3f, %7.3f\r\n", t0, t1 ); wait( 1 ); main.cpp 47 temp0 I2C 100kHz temp1 400kHz

48 48..

49 49

50 API.h Doxygen 50 mbed.org.h Doxygen

51 51 Doxygen API

52 * * i2c.frequency( 400 * 1000 ); * while(1) { * t0 = temp0; * t1 = temp1; * printf( "temp = %7.3f, %7.3f\r\n", t0, t1 ); * wait( 1 ); * * */ class test_lm75b { public: /** Create a test_lm75b instance connected to specified I2C pins with specified address * sda I2C-bus SDA pin scl I2C-bus SCL pin address (option) I2C-bus slave address (default: 0x90) */ test_lm75b( PinName sda, PinName scl, char address = ADDRESS_LM75B ); /** Create a test_lm75b instance connected to specified I2C pins with specified address * i2c_obj I2C object (instance) address (option) I2C-bus slave address (default: 0x90) */ test_lm75b( I2C &i2c_obj, char address = ADDRESS_LM75B ); /** Destractor */ ~test_lm75b(); /** Initialization */ void init( void ); /** Read temperature * value of degree Celsius (in float) */ float read( void ); /** Read temperature * the object returns the read value */ operator float( void ); private: I2C *i2c_p; I2C &i2c; char adr; ; 52

53 DOXYGEN 53 URL ( (.h #define ) )

54 54

55 / OK 55

56 / ( ) 56 / OK Public (Unlisted) URL Apache2

57 57

58 CQ Apache2 58 ( (History ) )

59 59

60 Wiki Wiki Wiki 60 / Edit repository homepage Wiki

61 Wiki Editing tips Full Wiki syntax Preview Wiki HTML web 61 Editing tips Wiki Full Wiki Syntax

62 Wiki Q&A 62 Wiki mbed.org Q&A.. Wiki

63 63 mbed Cookbook mbed

64 Add a component HelloWorld 64 (HelloWorld ) Add a component

65 URL URL Wiki 65

66 Tested platforms 66 Tested platforms mbed

67 ( ) Hello Hello 67

68 68

69 .. Pull ( ) 69..

70 (1) MARY-VB 70

71 SPI MARY-VB MARY-VB MARY-OB MARY-OB 9 / MARY-VB 8 / SPI 71 MARMEX-VB OLED SPI 8 OLED 9

72 MARMEX-OB MARMEX-VB SPI SPI MARMEX_OB_oled( PinName mosi, PinName sclk, PinName cs, PinName rst, PinName power_pin ) : NokiaLCD( mosi, sclk, cs, rst, NokiaLCD::LCD6100 ), _power_pin( power_pin ) {... _spi.format( 9 ); _spi.frequency( SPI_FREQUENCY );... 9 / MARMEX_VB::MARMEX_VB( PinName SPI_mosi, PinName SPI_miso, PinName SPI_sck, PinName SPI_cs, PinName cam_reset, PinName I2C_sda, PinName I2C_scl ) : _spi( SPI_mosi, SPI_miso, SPI_sck ), _cs( SPI_cs ), _reset( cam_reset ), _i2c( I2C_sda, I2C_scl ) {... _spi.format( 8 ); _spi.frequency( SPI_FREQUENCY );... _spi.write() 9 / 8 / 8 / 72 OLED ( ) SPI SDK

73 SPI SPI disply_spi( p5, p6, p7 ); SPI camera_spi( p5, p6, p7); DigitalOut disply_cs( p20 ); DigitalOut camera_cs( p22 );... disply_spi.format( 9 ); camera_spi.format( 8 );... disply_cs = 0; disply_spi.write( data_for_disply ); disply_cs = 1;... camera_cs = 0; camera_spi.write( data_for_camera ); camera_cs = 1;... MARMEX-VB SDK 73 SPI 2 write

74

75 app I2C instance processor MCU I 2 C master I 2 C slave I 2 C slave I 2 C bus I 2 C slave app SPI instance SPI instance SPI processor MCU SPI master SPI slave SPI slave SPI bus

76 (2) ( ) 76 /

77 MARMEX-VB CQ

78 (^^; ISP 78

79 (3) mbed LPC1768 (mbed ) (^^; ARM 79 mbed (mbed LPC1768)

80 (4) 80 mbed (mbed LPC1768)

81 40pin LPCXpresso Arduino pin LPCXpresso Arduino..

82 .. LPCXpresso mbed 82 LPCXpresso mbed

83 (5) (MCU ) 83 mbed MCU MCU mbed-sdk MCU

84 #if ( LINE_READ_OPT == USING_SSP_FIFO ) #define FIFO_DEPTH 4 #if defined( SSP_AUTO_SELECTION ) #if defined( TARGET_MBED_LPC1768 ) #define SPI_PORT_SELECTOR LPC_SSP1 #elif defined( TARGET_LPC11U35_501 ) defined( TARGET_LPC11U24_401 ) #define SPI_PORT_SELECTOR LPC_SSP0 #endif #elif defined( SSP_USE_SSP0 ) #define SPI_PORT_SELECTOR LPC_SSP0 #elif defined( SSP_USE_SSP1 ) #define SPI_PORT_SELECTOR LPC_SSP1 #else #error when using FIFO option for the optimization, choose one of definition SSP_USE_SSP0.. #endif // #if defined( SSP_AUTO_SELECTION ) char reg = COMMAND_READ CAMERA_DATA_REGISTER COMMAND_ADDR_INCREMENT; int n; if ( _read_order_change ) { _cs = 0; for(n = FIFO_DEPTH; n > 0; n--) { SPI_PORT_SELECTOR->DR = reg; do { while (!(SPI_PORT_SELECTOR->SR & 0x4)); *p = (SPI_PORT_SELECTOR->DR & 0xFF); if (n++ < (n_of_pixels << 1) - FIFO_DEPTH) SPI_PORT_SELECTOR->DR = reg; CMSIS ( ) while (!(SPI_PORT_SELECTOR->SR & 0x4)); *p++ = (SPI_PORT_SELECTOR->DR << 8); if (n++ < (n_of_pixels << 1) - FIFO_DEPTH) SPI_PORT_SELECTOR->DR = reg; while(n < (n_of_pixels << 1)); _cs = 1; mbed

85 (6) 85..

86 86 Yamamoto \(^^)/

87 87 /

88 Review Close 88

89 (7) 89 mbed.org mbed.org Twitter

90 (8) 90 mbed.org C++ (^^)

91 (9) mbed-sdk 91 mbed-sdk

92 mbed.org mbed-sdk Github

Java updated

Java updated Java 2003.07.14 updated 3 1 Java 5 1.1 Java................................. 5 1.2 Java..................................... 5 1.3 Java................................ 6 1.3.1 Java.......................

More information

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV tutimura@mist.i.u-tokyo.ac.jp kaneko@ipl.t.u-tokyo.ac.jp http://www.misojiro.t.u-tokyo.ac.jp/ tutimura/sem3/ 2002 12 11 p.1/33 10/16 1. 10/23 2. 10/30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20

More information

Nios® II HAL API を使用したソフトウェア・サンプル集 「Modular Scatter-Gather DMA Core」

Nios® II HAL API を使用したソフトウェア・サンプル集 「Modular Scatter-Gather DMA Core」 ALTIMA Company, MACNICA, Inc Nios II HAL API Modular Scatter-Gather DMA Core Ver.17.1 2018 8 Rev.1 Nios II HAL API Modular Scatter-Gather DMA Core...3...3...4... 4... 5 3-2-1. msgdma... 6 3-2-2. On-Chip

More information

SystemC 2.0を用いた簡易CPUバスモデルの設計

SystemC 2.0を用いた簡易CPUバスモデルの設計 SystemC 2.0 CPU CPU CTD&SW CT-PF 2002/1/23 1 CPU BCA UTF GenericCPU IO (sc_main) 2002/1/23 2 CPU CPU CQ 1997 11 Page 207 4 Perl Verilog-HDL CPU / Verilog-HDL SystemC 2.0 (asm) ROM (test.hex) 2002/1/23

More information

CM-3G 周辺モジュール拡張技術文書 MS5607センサ(温度、気圧)

CM-3G 周辺モジュール拡張技術文書 MS5607センサ(温度、気圧) CM-3G 周辺モジュール拡張技術文書 MS5607 センサ ( 温度 気圧 ) ( 第 1 版 ) Copyright (C)2016 株式会社コンピューテックス 目次 1. はじめに... 1 2. MS5607 について... 1 3. 接続図... 1 4. アプリケーション ソース... 2 5. アプリケーションのコンパイル方法... 7 6. アプリケーションの実行... 8 1. はじめに

More information

新・明解Java入門

新・明解Java入門 537,... 224,... 224,... 32, 35,... 188, 216, 312 -... 38 -... 38 --... 102 --... 103 -=... 111 -classpath... 379 '... 106, 474!... 57, 97!=... 56 "... 14, 476 %... 38 %=... 111 &... 240, 247 &&... 66,

More information

ESP32-KEY-KIT-R1 (ESP-WROOM-32 ) Copyright c 2

ESP32-KEY-KIT-R1 (ESP-WROOM-32 ) Copyright c 2 ESP32-KEY-KIT-R1 (ESP-WROOM-32 ) http://www.microfan.jp/ http://store.shopping.yahoo.co.jp/microfan/ http://www.microfan.jp/shop/ 2017 4 Copyright c 2017 MicroFan, All Rights Reserved. i 1 ESP32-KEY-KIT-R1

More information

: : : TSTank 2

: : : TSTank 2 Java (8) 2008-05-20 Lesson6 Lesson5 Java 1 Lesson 6: TSTank1, TSTank2, TSTank3 java 2 car1 car2 Car car1 = new Car(); Car car2 = new Car(); car1.setcolor(red); car2.setcolor(blue); car2.changeengine(jet);

More information

Java演習(4) -- 変数と型 --

Java演習(4)   -- 変数と型 -- 50 20 20 5 (20, 20) O 50 100 150 200 250 300 350 x (reserved 50 100 y 50 20 20 5 (20, 20) (1)(Blocks1.java) import javax.swing.japplet; import java.awt.graphics; (reserved public class Blocks1 extends

More information

SystemC言語概論

SystemC言語概論 SystemC CPU S/W 2004/01/29 4 SystemC 1 SystemC 2.0.1 CPU S/W 3 ISS SystemC Co-Simulation 2004/01/29 4 SystemC 2 ISS SystemC Co-Simulation GenericCPU_Base ( ) GenericCPU_ISS GenericCPU_Prog GenericCPU_CoSim

More information

Slide 1

Slide 1 ARM Cortex -M マイコン デバイス開発 プラットフォーム mbed の全貌と最新情報 - クラウドでサクサク プロトタイピング - アーム株式会社スタッフアプリケーションエンジニア渡會豊政 1 私と mbed( エンベッド ) の関わり合い 2009 年にアーム株式会社に入社 mbed のリリース時期と同じ! 開発ツールの技術サポートを担当 業務の合間に mbed で遊ぶを使う 楽しい!!

More information

Condition DAQ condition condition 2 3 XML key value

Condition DAQ condition condition 2 3 XML key value Condition DAQ condition 2009 6 10 2009 7 2 2009 7 3 2010 8 3 1 2 2 condition 2 3 XML key value 3 4 4 4.1............................. 5 4.2...................... 5 5 6 6 Makefile 7 7 9 7.1 Condition.h.............................

More information

PowerPoint Presentation

PowerPoint Presentation UML 2004 7 9 10 ... OOP UML 10 Copyright 2004 Akira HIRASAWA all rights reserved. 2 1. 2. 3. 4. UML 5. Copyright 2004 Akira HIRASAWA all rights reserved. 3 1..... Copyright 2004 Akira HIRASAWA all rights

More information

WinHPC ppt

WinHPC ppt MPI.NET C# 2 2009 1 20 MPI.NET MPI.NET C# MPI.NET C# MPI MPI.NET 1 1 MPI.NET C# Hello World MPI.NET.NET Framework.NET C# API C# Microsoft.NET java.net (Visual Basic.NET Visual C++) C# class Helloworld

More information

PBASIC 2.5 PBASIC 2.5 $PBASIC directive PIN type New DEBUG control characters DEBUGIN Line continuation for comma-delimited lists IF THEN ELSE * SELEC

PBASIC 2.5 PBASIC 2.5 $PBASIC directive PIN type New DEBUG control characters DEBUGIN Line continuation for comma-delimited lists IF THEN ELSE * SELEC PBASIC 2.5 PBASIC 2.5 BASIC Stamp Editor / Development System Version 2.0 Beta Release 2 2.0 PBASIC BASIC StampR PBASIC PBASIC PBASIC 2.5 Parallax, Inc. PBASIC 2.5 PBASIC 2.5 support@microbot-ed.com 1

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション 磁気コンパスの試作 ~ データ送信の無線化 ~ 液晶表示 電源 5V 位 ICSP PICKit3 PIC:16F1827 液晶表示器 ACM1602NI-FLW-FBW-M01 液晶表示器 AQM0802A-RN-GBW PIC16F1827 完成版 変更点 :2015.1.23 2015.1.30 倒立振子デモ 2015.1.22 倒立振子, グラフィッデモ 2014.12.18 グラフィックデモ

More information

Java (5) 1 Lesson 3: x 2 +4x +5 f(x) =x 2 +4x +5 x f(10) x Java , 3.0,..., 10.0, 1.0, 2.0,... flow rate (m**3/s) "flow

Java (5) 1 Lesson 3: x 2 +4x +5 f(x) =x 2 +4x +5 x f(10) x Java , 3.0,..., 10.0, 1.0, 2.0,... flow rate (m**3/s) flow Java (5) 1 Lesson 3: 2008-05-20 2 x 2 +4x +5 f(x) =x 2 +4x +5 x f(10) x Java 1.1 10 10 0 1.0 2.0, 3.0,..., 10.0, 1.0, 2.0,... flow rate (m**3/s) "flowrate.dat" 10 8 6 4 2 0 0 5 10 15 20 25 time (s) 1 1

More information

Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for

Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for embedded systems that use microcontrollers (MCUs)

More information

ESP8266-CORE-R Copyrig

ESP8266-CORE-R Copyrig ESP8266-CORE-R1 http://www.microfan.jp/ https://store.shopping.yahoo.co.jp/microfan/ https://www.amazon.co.jp/s?merchant=a28nhprkjdc95b 2018 3 Copyright c 2017-2018 MicroFan, All Rights Reserved. i 1 ESP8266-CORE-R1

More information

MPI MPI MPI.NET C# MPI Version2

MPI MPI MPI.NET C# MPI Version2 MPI.NET C# 2 2009 2 27 MPI MPI MPI.NET C# MPI Version2 MPI (Message Passing Interface) MPI MPI Version 1 1994 1 1 1 1 ID MPI MPI_Send MPI_Recv if(rank == 0){ // 0 MPI_Send(); } else if(rank == 1){ // 1

More information

BlueJ 2.0.1 BlueJ 2.0.x Michael Kölling Mærsk Institute University of Southern Denmark Toin University of Yokohama Alberto Palacios Pawlovsky 17 4 4 3 1 5 1.1 BlueJ.....................................

More information

ex01.dvi

ex01.dvi ,. 0. 0.0. C () /******************************* * $Id: ex_0_0.c,v.2 2006-04-0 3:37:00+09 naito Exp $ * * 0. 0.0 *******************************/ #include int main(int argc, char **argv) double

More information

RHEA key

RHEA key 2 P (k, )= k e k! 3 4 Probability 0.4 0.35 0.3 0.25 Poisson ( λ = 1) Poisson (λ = 3) Poisson ( λ = 10) Poisson (λ = 20) Poisson ( λ = 30) Gaussian (µ = 1, s = 1) Gaussian ( µ = 3, s = 3) Gaussian (µ =

More information

K227 Java 2

K227 Java 2 1 K227 Java 2 3 4 5 6 Java 7 class Sample1 { public static void main (String args[]) { System.out.println( Java! ); } } 8 > javac Sample1.java 9 10 > java Sample1 Java 11 12 13 http://java.sun.com/j2se/1.5.0/ja/download.html

More information

joho07-1.ppt

joho07-1.ppt 0xbffffc5c 0xbffffc60 xxxxxxxx xxxxxxxx 00001010 00000000 00000000 00000000 01100011 00000000 00000000 00000000 xxxxxxxx x y 2 func1 func2 double func1(double y) { y = y + 5.0; return y; } double func2(double*

More information

Windows Web Windows Windows WinSock

Windows Web Windows Windows WinSock Windows kaneko@ipl.t.u-tokyo.ac.jp tutimura@mist.t.u-tokyo.ac.jp 2002 12 4 8 Windows Web Windows Windows WinSock UNIX Microsoft Windows Windows Windows Windows Windows.NET Windows 95 DOS Win3.1(Win16API)

More information

/* do-while */ #include <stdio.h> #include <math.h> int main(void) double val1, val2, arith_mean, geo_mean; printf( \n ); do printf( ); scanf( %lf, &v

/* do-while */ #include <stdio.h> #include <math.h> int main(void) double val1, val2, arith_mean, geo_mean; printf( \n ); do printf( ); scanf( %lf, &v 1 http://www7.bpe.es.osaka-u.ac.jp/~kota/classes/jse.html kota@fbs.osaka-u.ac.jp /* do-while */ #include #include int main(void) double val1, val2, arith_mean, geo_mean; printf( \n );

More information

program.dvi

program.dvi 2001.06.19 1 programming semi ver.1.0 2001.06.19 1 GA SA 2 A 2.1 valuename = value value name = valuename # ; Fig. 1 #-----GA parameter popsize = 200 mutation rate = 0.01 crossover rate = 1.0 generation

More information

Ver.1 1/17/2003 2

Ver.1 1/17/2003 2 Ver.1 1/17/2003 1 Ver.1 1/17/2003 2 Ver.1 1/17/2003 3 Ver.1 1/17/2003 4 Ver.1 1/17/2003 5 Ver.1 1/17/2003 6 Ver.1 1/17/2003 MALTAB M GUI figure >> guide GUI GUI OK 7 Ver.1 1/17/2003 8 Ver.1 1/17/2003 Callback

More information

3 Java 3.1 Hello World! Hello World public class HelloWorld { public static void main(string[] args) { System.out.println("Hello World");

3 Java 3.1 Hello World! Hello World public class HelloWorld { public static void main(string[] args) { System.out.println(Hello World); (Basic Theory of Information Processing) Java (eclipse ) Hello World! eclipse Java 1 3 Java 3.1 Hello World! Hello World public class HelloWorld { public static void main(string[] args) { System.out.println("Hello

More information

ARM gcc Kunihiko IMAI 2009 1 11 ARM gcc 1 2 2 2 3 3 4 3 4.1................................. 3 4.2............................................ 4 4.3........................................

More information

double float

double float 2015 3 13 1 2 2 3 2.1.......................... 3 2.2............................. 3 3 4 3.1............................... 4 3.2 double float......................... 5 3.3 main.......................

More information

解きながら学ぶC++入門編

解きながら学ぶC++入門編 !... 38!=... 35 "... 112 " "... 311 " "... 4, 264 #... 371 #define... 126, 371 #endif... 369 #if... 369 #ifndef... 369 #include... 3, 311 #undef... 371 %... 17, 18 %=... 85 &... 222 &... 203 &&... 40 &=...

More information

A B 1: Ex. MPICH-G2 C.f. NXProxy [Tanaka] 2:

A B 1: Ex. MPICH-G2 C.f. NXProxy [Tanaka] 2: Java Jojo ( ) ( ) A B 1: Ex. MPICH-G2 C.f. NXProxy [Tanaka] 2: Java Jojo Jojo (1) :Globus GRAM ssh rsh GRAM ssh GRAM A rsh B Jojo (2) ( ) Jojo Java VM JavaRMI (Sun) Horb(ETL) ( ) JPVM,mpiJava etc. Send,

More information

CM-3G 周辺モジュール拡張技術文書 INA226センサ(電流、電圧、電力)

CM-3G 周辺モジュール拡張技術文書 INA226センサ(電流、電圧、電力) CM-3G 周辺モジュール拡張技術文書 INA226 センサ ( 電流 電圧 電力 ) ( 第 1 版 ) Copyright (C)2015 株式会社コンピューテックス 目次 1. はじめに... 1 2. INA226 について... 1 3. 接続図... 1 4. buildroot へのパッチと make 方法... 2 5. シェル スクリプト... 3 6. シェル スクリプトの実行...

More information

1 C STL(1) C C C libc C C C++ STL(Standard Template Library ) libc libc C++ C STL libc STL iostream Algorithm libc STL string vector l

1 C STL(1) C C C libc C C C++ STL(Standard Template Library ) libc libc C++ C STL libc STL iostream Algorithm libc STL string vector l C/C++ 2007 6 18 1 C STL(1) 2 1.1............................................... 2 1.2 stdio................................................ 3 1.3.......................................... 10 2 11 2.1 sizeof......................................

More information

CX-Checker CX-Checker (1)XPath (2)DOM (3) 3 XPath CX-Checker. MISRA-C 62%(79/127) SQMlint 76%(13/17) XPath CX-Checker 3. CX-Checker 4., MISRA-C CX- Ch

CX-Checker CX-Checker (1)XPath (2)DOM (3) 3 XPath CX-Checker. MISRA-C 62%(79/127) SQMlint 76%(13/17) XPath CX-Checker 3. CX-Checker 4., MISRA-C CX- Ch CX-Checker: C 1 1 2 3 4 5 1 CX-Checker CX-Checker XPath DOM 3 CX-Checker MISRA-C CX-Checker: A Customizable Coding Checker for C TOSHINORI OSUKA, 1 TAKASHI KOBAYASHI, 1 JUNICHI MASE, 2 NORITOSHI ATSUMI,

More information

slide

slide // Filename: Example701.ino(AllTest.ino) // Author: Akinori TSuji #include "FastLED.h" #include "SparkFunBME280.h" #include "RTClib.h" #include "LiquidCrystal_I2C.h" #define LED_PIN 13 #define DATA_PIN

More information

Java 3 p.2 3 Java : boolean Graphics draw3drect fill3drect C int C OK while (1) int boolean switch case C Calendar java.util.calendar A

Java 3 p.2 3 Java : boolean Graphics draw3drect fill3drect C int C OK while (1) int boolean switch case C Calendar java.util.calendar A Java 3 p.1 3 Java Java if for while C 3.1 if Java if C if if ( ) 1 if ( ) 1 else 2 1 1 2 2 1, 2 { Q 3.1.1 1. int n = 2; if (n

More information

Smalltalk_

Smalltalk_ DLLCC VisualWorks C Mac OS SSK-LampControl/ VisualWorksWithJun SSK-LampControl.h include SSK SSK FileBrowser SSK-LampControl.st FIle in SSK-LampControl File in SSK File in ( Smalltalk.SSK) ( C ) Controller

More information

untitled

untitled II yacc 005 : 1, 1 1 1 %{ int lineno=0; 3 int wordno=0; 4 int charno=0; 5 6 %} 7 8 %% 9 [ \t]+ { charno+=strlen(yytext); } 10 "\n" { lineno++; charno++; } 11 [^ \t\n]+ { wordno++; charno+=strlen(yytext);}

More information

SCV in User Forum Japan 2003

SCV in User Forum Japan 2003 Open SystemC Initiative (OSCI) SystemC - The SystemC Verification Standard (SCV) - Stuart Swan & Cadence Design Systems, Inc. Q0 Q1 Q2 Q3 Q4 Q5 2 SystemC Q0 Q1 Q2 Q3 Q4 Q5 3 Verification Working Group

More information

2016 VOCALOID Group, Yamaha Corporation 2

2016 VOCALOID Group, Yamaha Corporation 2 2016 VOCALOID Group, Yamaha Corporation 2016 VOCALOID Group, Yamaha Corporation 2 2016 VOCALOID Group, Yamaha Corporation 3 #if UNITY_EDITOR_WIN UNITY_STANDALONE_WIN using Yamaha.VOCALOID.Windows; #elif

More information

Quartus II ハンドブック Volume 5、セクションIV. マルチプロセッサの調整

Quartus II ハンドブック  Volume 5、セクションIV. マルチプロセッサの調整 IV. SOPC Builder Nios II 9 Avalon Mutex 10 Avalon Mailbox 9 10 / 9 v5.1.0 2005 5 v5.0.0 Nios II 2004 12 v1.0 10 v5.1.0 2005 5 v5.0.0 Altera Corporation IV 1 Quartus II Volume 5 IV 2 Altera Corporation

More information

A/B (2018/06/08) Ver kurino/2018/soft/soft.html A/B

A/B (2018/06/08) Ver kurino/2018/soft/soft.html A/B A/B (2018/06/08) Ver. 1.0 kurino@math.cst.nihon-u.ac.jp http://edu-gw2.math.cst.nihon-u.ac.jp/ kurino/2018/soft/soft.html 2018 6 8 A/B 1 2018 6 8 2 1 1 1.1 OHP.................................... 1 1.2

More information

‚æ4›ñ

‚æ4›ñ ( ) ( ) ( ) A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 (OUS) 9 26 1 / 28 ( ) ( ) ( ) A B C D Z a b c d z 0 1 2 9 (OUS) 9

More information

新版明解C言語 実践編

新版明解C言語 実践編 2 List - "max.h" a, b max List - max "max.h" #define max(a, b) ((a) > (b)? (a) : (b)) max List -2 List -2 max #include "max.h" int x, y; printf("x"); printf("y"); scanf("%d", &x); scanf("%d", &y); printf("max(x,

More information

Lab GPIO_35 GPIO

Lab GPIO_35 GPIO 6,GPIO, PSoC 3/5 GPIO HW Polling and Interrupt PSoC Experiment Lab PSoC 3/5 GPIO Experiment Course Material 6 V2.02 October 15th. 2012 GPIO_35.PPT (65 Slides) Renji Mikami Renji_Mikami@nifty.com Lab GPIO_35

More information

Java学習教材

Java学習教材 Java 2016/4/17 Java 1 Java1 : 280 : (2010/1/29) ISBN-10: 4798120987 ISBN-13: 978-4798120980 2010/1/29 1 Java 1 Java Java Java class FirstExample { public static void main(string[] args) { System.out.println("

More information

やさしいJavaプログラミング -Great Ideas for Java Programming サンプルPDF

やさしいJavaプログラミング -Great Ideas for Java Programming サンプルPDF pref : 2004/6/5 (11:8) pref : 2004/6/5 (11:8) pref : 2004/6/5 (11:8) 3 5 14 18 21 23 23 24 28 29 29 31 32 34 35 35 36 38 40 44 44 45 46 49 49 50 pref : 2004/6/5 (11:8) 50 51 52 54 55 56 57 58 59 60 61

More information

para02-2.dvi

para02-2.dvi 2002 2 2002 4 23 : MPI MPI 1 MPI MPI(Message Passing Interface) MPI UNIX Windows Machintosh OS, MPI 2 1 1 2 2.1 1 1 1 1 1 1 Fig. 1 A B C F Fig. 2 A B F Fig. 1 1 1 Fig. 2 2.2 Fig. 3 1 . Fig. 4 Fig. 3 Fig.

More information

r07.dvi

r07.dvi 19 7 ( ) 2019.4.20 1 1.1 (data structure ( (dynamic data structure 1 malloc C free C (garbage collection GC C GC(conservative GC 2 1.2 data next p 3 5 7 9 p 3 5 7 9 p 3 5 7 9 1 1: (single linked list 1

More information

JAXA key

JAXA key ! 芸術衛星INVADERのフライトモデル I A 2 8 7 IC J 6 R 22 I 7 6 C 9 I 9 9 J 7R 2 R 9 6 8 I 7 8 7 2 I22 7 8 2 J C I R 2 8 7 J 8 2 R C J C 9 6 I 2 6 7 2 8 8 6 I C 7 I C 9 C 9 J 7 C R 2 8 7 I I 9 6 8 2 R J 8 7 C

More information

ohp07.dvi

ohp07.dvi 19 7 ( ) 2019.4.20 1 (data structure) ( ) (dynamic data structure) 1 malloc C free 1 (static data structure) 2 (2) C (garbage collection GC) C GC(conservative GC) 2 2 conservative GC 3 data next p 3 5

More information

1) OOP 2) ( ) 3.2) printf Number3-2.cpp #include <stdio.h> class Number Number(); // ~Number(); // void setnumber(float n); float getnumber();

1) OOP 2) ( ) 3.2) printf Number3-2.cpp #include <stdio.h> class Number Number(); // ~Number(); // void setnumber(float n); float getnumber(); : : :0757230G :2008/07/18 2008/08/17 1) OOP 2) ( ) 3.2) printf Number3-2.cpp #include class Number Number(); // ~Number(); // void setnumber(float n); float getnumber(); private: float num; ;

More information

RubyKaigi2009 COBOL

RubyKaigi2009 COBOL RubyKaigi2009 COBOL seki@druby.org 3360 Pragmatic Bookshelf druby Web $32.00 International Journal of PARALLEL PROGRAMING !? MapReduce Rinda (map, reduce) map reduce key value [, ] [, ID] map()

More information

C言語によるアルゴリズムとデータ構造

C言語によるアルゴリズムとデータ構造 Algorithms and Data Structures in C 4 algorithm List - /* */ #include List - int main(void) { int a, b, c; int max; /* */ Ÿ 3Ÿ 2Ÿ 3 printf(""); printf(""); printf(""); scanf("%d", &a); scanf("%d",

More information

ARM Corporate Presentation

ARM Corporate Presentation オフラインコンパイラと CMSIS-DAP デバッグ環境の紹介 アーム株式会社 ARM サービス部門アプリケーションエンジニア 渡會豊政 1 1 自己紹介 渡會豊政 ( わたらいとよまさ ) ソフトウェア開発ツール ( 主にコンパイラ ) の技術サポート LPC1114 mbedのポーティングとかやりました Twitter : @toyowata https://mbed.org/users/macrum/notebook

More information

Arduino UNO IS Report No. Report Medical Information System Laboratory

Arduino UNO IS Report No. Report Medical Information System Laboratory Arduino UNO 2015 2 25 IS Report No. Report Medical Information System Laboratory Abstract ( ) Arduino / Arduino Bluetooth Bluetooth : Arduino Arduino UNO Arduino IDE micro computer LED 1............................

More information

untitled

untitled II 4 Yacc Lex 2005 : 0 1 Yacc 20 Lex 1 20 traverse 1 %% 2 [0-9]+ { yylval.val = atoi((char*)yytext); return NUM; 3 "+" { return + ; 4 "*" { return * ; 5 "-" { return - ; 6 "/" { return / ; 7 [ \t] { /*

More information

1.ppt

1.ppt /* * Program name: hello.c */ #include int main() { printf( hello, world\n ); return 0; /* * Program name: Hello.java */ import java.io.*; class Hello { public static void main(string[] arg)

More information

ストラドプロシージャの呼び出し方

ストラドプロシージャの呼び出し方 Release10.5 Oracle DataServer Informix MS SQL NXJ SQL JDBC Java JDBC NXJ : NXJ JDBC / NXJ EXEC SQL [USING CONNECTION ] CALL [.][.] ([])

More information

mbed-nucleo-f401re-offline-works

mbed-nucleo-f401re-offline-works STM32-NUCLEO 向けオフライン作業ひととおりやってみました mbed 祭り 2014@ 春の大阪 重い腰を上げてやっと mbed に対応に乗り出した ST mbed 対応は 数年前から 下で進めていた STM32 マイコンエコシステムのリニューアルの一部という位置付けです 実際に対応されたものが出てくると どう使っていけるか? というところで悩んでいます 導き出したひとつの答えと それをもとにした作業の中で

More information

Applet java.lang.object java.awt.component java.awt.container java.awt.panel java.applet.applet

Applet java.lang.object java.awt.component java.awt.container java.awt.panel java.applet.applet 13 Java 13.9 Applet 13.10 AppletContext 13.11 Applet java.lang.object java.awt.component java.awt.container java.awt.panel java.applet.applet Applet (1/2) Component GUI etc Container Applet (2/2) Panel

More information

Local variable x y i paint public class Sample extends Applet { public void paint( Graphics gc ) { int x, y;... int i=10 ; while ( i < 100 ) {... i +=

Local variable x y i paint public class Sample extends Applet { public void paint( Graphics gc ) { int x, y;... int i=10 ; while ( i < 100 ) {... i += Safari AppletViewer Web HTML Netscape Web Web 13-1 Applet Web Applet init Web paint Web start Web HTML stop destroy update init Web paint start Web update Event Driven paint Signature Overwriting Overriding

More information

MINI2440マニュアル

MINI2440マニュアル Multi-Media DSP/BF53x Linux http://www.csun.co.jp info@csun.co.jp 2009/3/6 copyright@2009 http://www.csun.co.jp info@csun.co.jp 1 DSP/BF53x...3 1.1...3 1.2...7 DSP/BF53x...8 2.1...8 2.2...9 uclinux...

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション ワイヤレスモーショントランスミッタ 小型実装版 日用品の中に収納 : ケースは,100 円の柄杓 ( ひしゃく ) 柄杓は, 水を汲む部分 ( 合 ) を切り離し, 柄のみを利用. ワイヤレスモーショントランスミッタ 小型実装版 I2C コネクタ PIC 16F1827 無線モジュール TOCO Wireless Engine TWE-001-Lite PICKit3 ICP コネクタ (5P) Lipo

More information

RX600 & RX200シリーズ アプリケーションノート RX用仮想EEPROM

RX600 & RX200シリーズ アプリケーションノート RX用仮想EEPROM R01AN0724JU0170 Rev.1.70 MCU EEPROM RX MCU 1 RX MCU EEPROM VEE VEE API MCU MCU API RX621 RX62N RX62T RX62G RX630 RX631 RX63N RX63T RX210 R01AN0724JU0170 Rev.1.70 Page 1 of 33 1.... 3 1.1... 3 1.2... 3

More information

- - http://168iroha.net 018 10 14 i 1 1 1.1.................................................... 1 1.................................................... 7.1................................................

More information

Java (9) 1 Lesson Java System.out.println() 1 Java API 1 Java Java 1

Java (9) 1 Lesson Java System.out.println() 1 Java API 1 Java Java 1 Java (9) 1 Lesson 7 2008-05-20 Java System.out.println() 1 Java API 1 Java Java 1 GUI 2 Java 3 1.1 5 3 1.0 10.0, 1.0, 0.5 5.0, 3.0, 0.3 4.0, 1.0, 0.6 1 2 4 3, ( 2 3 2 1.2 Java (stream) 4 1 a 5 (End of

More information

/ SCHEDULE /06/07(Tue) / Basic of Programming /06/09(Thu) / Fundamental structures /06/14(Tue) / Memory Management /06/1

/ SCHEDULE /06/07(Tue) / Basic of Programming /06/09(Thu) / Fundamental structures /06/14(Tue) / Memory Management /06/1 I117 II I117 PROGRAMMING PRACTICE II 2 MEMORY MANAGEMENT 2 Research Center for Advanced Computing Infrastructure (RCACI) / Yasuhiro Ohara yasu@jaist.ac.jp / SCHEDULE 1. 2011/06/07(Tue) / Basic of Programming

More information

ex01.dvi

ex01.dvi ,. 0. 0.0. C () /******************************* * $Id: ex_0_0.c,v.2 2006-04-0 3:37:00+09 naito Exp $ * * 0. 0.0 *******************************/ #include int main(int argc, char **argv) { double

More information

超初心者用

超初心者用 3 1999 10 13 1. 2. hello.c printf( Hello, world! n ); cc hello.c a.out./a.out Hello, world printf( Hello, world! n ); 2 Hello, world printf n printf 3. ( ) int num; num = 100; num 100 100 num int num num

More information

HTML Java Tips dp8t-asm/java/tips/ Apache Tomcat Java if else f

HTML Java Tips   dp8t-asm/java/tips/ Apache Tomcat Java if else f 1 Servlet 1.1 Web Web WWW HTML CGI Common Gateway InterfaceWeb HTML Web Web CGI CGI CGI Perl C Java Applet JavaScript Web CGI HTML 1.2 Servlet Java Servlet Servlet CGI Web CGI 1 Java / Java Java CGI Servlet

More information

main

main 14 1. 12 5 main 1.23 3 1.230000 3 1.860867 1 2. 1988 1925 1911 1867 void JPcalendar(int x) 1987 1 64 1 1 1 while(1) Ctrl C void JPcalendar(int x){ if (x > 1988) printf(" %d %d \n", x, x-1988); else if(x

More information

2: 3: A, f, φ f(t = A sin(2πft + φ = A sin(ωt + φ ω 2πf 440Hz A ( ( 4 ( 5 f(t = sin(2πf 1t + sin(2πf 2 t = 2 sin(2πt(f 1 + f 2 /2 cos(2πt(f 1 f

2: 3: A, f, φ f(t = A sin(2πft + φ = A sin(ωt + φ ω 2πf 440Hz A ( ( 4 ( 5 f(t = sin(2πf 1t + sin(2πf 2 t = 2 sin(2πt(f 1 + f 2 /2 cos(2πt(f 1 f 12 ( TV TV, CATV, CS CD, DAT, DV, DVD ( 12.1 12.1.1 1 1: T (sec f (Hz T= 1 f P a = N/m 2 1.013 10 5 P a 1 10 5 1.00001 0.99999 2,3 1 2: 3: 12.1.2 A, f, φ f(t = A sin(2πft + φ = A sin(ωt + φ ω 2πf 440Hz

More information

thesis.dvi

thesis.dvi H8 e041220 2009 2 Copyright c 2009 by Kentarou Nagashima c 2009 Kentarou Nagashima All rights reserved , H8.,,,..,.,., AKI-H8/3052LAN. OS. OS H8 Write Turbo. H8 C, Cygwin.,., windows. UDP., (TA7279P).,.

More information

haskell.gby

haskell.gby Haskell 1 2 3 Haskell ( ) 4 Haskell Lisper 5 Haskell = Haskell 6 Haskell Haskell... 7 qsort [8,2,5,1] [1,2,5,8] "Hello, " ++ "world!" "Hello, world!" 1 + 2 div 8 2 (+) 1 2 8 div 2 3 4 map even [1,2,3,4]

More information

[ 1] 1 Hello World!! 1 #include <s t d i o. h> 2 3 int main ( ) { 4 5 p r i n t f ( H e l l o World!! \ n ) ; 6 7 return 0 ; 8 } 1:

[ 1] 1 Hello World!! 1 #include <s t d i o. h> 2 3 int main ( ) { 4 5 p r i n t f ( H e l l o World!! \ n ) ; 6 7 return 0 ; 8 } 1: 005 9 7 1 1.1 1 Hello World!! 5 p r i n t f ( H e l l o World!! \ n ) ; 7 return 0 ; 8 } 1: 1 [ ] Hello World!! from Akita National College of Technology. 1 : 5 p r i n t f ( H e l l o World!! \ n ) ;

More information

18 C ( ) hello world.c 1 #include <stdio.h> 2 3 main() 4 { 5 printf("hello World\n"); 6 } [ ] [ ] #include <stdio.h> % cc hello_world.c %./a.o

18 C ( ) hello world.c 1 #include <stdio.h> 2 3 main() 4 { 5 printf(hello World\n); 6 } [ ] [ ] #include <stdio.h> % cc hello_world.c %./a.o 18 C ( ) 1 1 1.1 hello world.c 5 printf("hello World\n"); 6 } [ ] [ ] #include % cc hello_world.c %./a.out Hello World [a.out ] % cc hello_world.c -o hello_world [ ( ) ] (K&R 4.1.1) #include

More information

untitled

untitled H8/300,H8S,H8SX [H8S,H8/300 Tool Chain Ver6.2.0.0] #define Inline static inline //************************************************** Inline char sil_and_mem(char *mem,char and) return (*((volatile

More information

HTML Java Tips dp8t-asm/java/tips/ Apache Tomcat Java if else f

HTML Java Tips   dp8t-asm/java/tips/ Apache Tomcat Java if else f 1 Servlet 1.1 Web Web WWW HTML CGI Common Gateway InterfaceWeb HTML Web Web CGI CGI CGI Perl C Java Applet JavaScript Web CGI HTML 1.2 Servlet Java Servlet Servlet CGI Web CGI 1 Java / Java Java CGI Servlet

More information

class IntCell { private int value ; int getvalue() {return value; private IntCell next; IntCell next() {return next; IntCell(int value) {this.value =

class IntCell { private int value ; int getvalue() {return value; private IntCell next; IntCell next() {return next; IntCell(int value) {this.value = Part2-1-3 Java (*) (*).class Java public static final 1 class IntCell { private int value ; int getvalue() {return value; private IntCell next; IntCell next() {return next; IntCell(int value) {this.value

More information

ALG ppt

ALG ppt 2012614 (sakai.keiichi@kochi-tech.ac.jp) http://www.info.kochi-tech.ac.jp/k1sakai/lecture/alg/2012/index.html 1 2 2 3 29 20 32 14 24 30 48 7 19 21 31 4 N O(log N) 29 O(N) 20 32 14 24 30 48 7 19 21 31 5

More information

PC Windows 95, Windows 98, Windows NT, Windows 2000, MS-DOS, UNIX CPU

PC Windows 95, Windows 98, Windows NT, Windows 2000, MS-DOS, UNIX CPU 1. 1.1. 1.2. 1 PC Windows 95, Windows 98, Windows NT, Windows 2000, MS-DOS, UNIX CPU 2. 2.1. 2 1 2 C a b N: PC BC c 3C ac b 3 4 a F7 b Y c 6 5 a ctrl+f5) 4 2.2. main 2.3. main 2.4. 3 4 5 6 7 printf printf

More information

1: Preference Display 1 package sample. pref ; 2 3 import android. app. Activity ; 4 import android. content. Intent ; 5 import android. content. Shar

1: Preference Display 1 package sample. pref ; 2 3 import android. app. Activity ; 4 import android. content. Intent ; 5 import android. content. Shar Android 2 1 (Activity) (layout strings.xml) XML Activity (Intent manifest) Android Eclipse XML Preference, DataBase, File 3 2 Preference Preference Preference URL:[http://www.aichi-pu.ac.jp/ist/lab/yamamoto/android/android-tutorial/tutorial02/tutorial02.pdf]

More information

Java Java Java Java Java 4 p * *** ***** *** * Unix p a,b,c,d 100,200,250,500 a*b = a*b+c = a*b+c*d = (a+b)*(c+d) = 225

Java Java Java Java Java 4 p * *** ***** *** * Unix p a,b,c,d 100,200,250,500 a*b = a*b+c = a*b+c*d = (a+b)*(c+d) = 225 Java Java Java Java Java 4 p35 4-2 * *** ***** *** * Unix p36 4-3 a,b,c,d 100,200,250,500 a*b = 20000 a*b+c = 20250 a*b+c*d = 145000 (a+b)*(c+d) = 225000 a+b*c+d = 50600 b/a+d/c = 4 p38 4-4 (1) mul = 1

More information

listings-ext

listings-ext (6) Python (2) ( ) ohsaki@kwansei.ac.jp 5 Python (2) 1 5.1 (statement)........................... 1 5.2 (scope)......................... 11 5.3 (subroutine).................... 14 5 Python (2) Python 5.1

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション mbed スキルアップパス ~L チカができたら ~ Takashi Matsuoka (matsujirushi) takashi.matsuoka.37 @matsujirushi12 L チカ LED を点滅 ( チカチカ ) させることを L チカと言います 電子工作 特にマイコン回路においては始めの一歩 つまり プログラミング言語で言う "Hello World!" と言われています http://elm-chan.org/junk/ledebug/report.html

More information

Web 1 p.2 1 Servlet Servlet Web Web Web Apache Web Servlet JSP Web Apache Tomcat Jetty Apache Tomcat, Jetty Java JDK, Eclipse

Web 1 p.2 1 Servlet Servlet Web Web Web Apache Web Servlet JSP Web Apache Tomcat Jetty Apache Tomcat, Jetty Java JDK, Eclipse Web 1 p.1 1 Servlet 1.1 Web Web WWW HTML CGI Common Gateway Interface Web HTML Web Web CGI CGI CGI Perl, PHP C Java Applet JavaScript Web CGI HTML 1.2 Servlet Java Servlet Servlet CGI Web CGI 1 Java Java

More information

2 ColorSpace DepthSpace CameraSpace Kinect V2 Kinect V2 BOdyIndex 3. NtKinect Kinect V2 C++ NtKinect [4] NtKinect = Kinect SDK + + STL(C++) + OpenCV +

2 ColorSpace DepthSpace CameraSpace Kinect V2 Kinect V2 BOdyIndex 3. NtKinect Kinect V2 C++ NtKinect [4] NtKinect = Kinect SDK + + STL(C++) + OpenCV + NtKinect: C++ Class Library for Kinect V2 1,a) Kinect for Windows V2 C++ NtKinect NtKinect DLL Kinect V2 Kinect V2, C++, DLL, Unity NtKinect: C++ Class Library for Kinect V2 Nitta Yoshihisa 1,a) Abstract:

More information

Exam : 1z1-809-JPN Title : Java SE 8 Programmer II Vendor : Oracle Version : DEMO Get Latest & Valid 1z1-809-JPN Exam's Question and Answers 1 from Ac

Exam : 1z1-809-JPN Title : Java SE 8 Programmer II Vendor : Oracle Version : DEMO Get Latest & Valid 1z1-809-JPN Exam's Question and Answers 1 from Ac Actual4Test http://www.actual4test.com Actual4test - actual test exam dumps-pass for IT exams Exam : 1z1-809-JPN Title : Java SE 8 Programmer II Vendor : Oracle Version : DEMO Get Latest & Valid 1z1-809-JPN

More information

C V C 6 1 6.1.............................. 1 6.......................... 3 6.3..................... 5 6.4 NULL............................. 8 6.5......................... 9 6.6..............................

More information

Safari AppletViewer Web HTML Netscape Web Web 15-1 Applet Web Applet init Web paint Web start Web HTML stop destroy update init Web paint start Web up

Safari AppletViewer Web HTML Netscape Web Web 15-1 Applet Web Applet init Web paint Web start Web HTML stop destroy update init Web paint start Web up Safari AppletViewer Web HTML Netscape Web Web 15-1 Applet Web Applet init Web paint Web start Web HTML stop destroy update init Web paint start Web update Event Driven paint Signature Overwriting Overriding

More information

3 3 2 2 2 2 2 2 Moji3 API

3 3 2 2 2 2 2 2 Moji3 API 7 2015. 03. 04 2014 3 3 2 2 2 2 2 2 Moji3 API UHF U.E.Cast 2011 20138 2011 2012 2013 U.E.Cast L SN 10cm 15cm 1 LAN [Hz] 10dB API [s] -80 db [s] API 10dB 16kHz -80 db 0Hz 1kHz 300Hz 0Hz 0Hz 1m 85cm 15cm!!

More information

Qt4.0 GUI Nishio 2007 8 29 3 1 Hello Qt! 5 1.1 Hello Qt!................................. 5 1.2 (QLabel)........................ 7 1.3 (QPushButton)................ 8 1.4 (QFont)................... 9

More information

「Android Studioではじめる 簡単Androidアプリ開発」正誤表

「Android Studioではじめる 簡単Androidアプリ開発」正誤表 Android Studio Android 2016/04/19 Android Studio Android *1 Android Studio Android Studio Android Studio Android Studio Android PDF : Android Studio Android Android Studio Android *2 c R TM *1 Android

More information

Q&A集

Q&A集 MapViewer & ver.2 EWEB-3C-N055 PreSerV for Web MapViewer & i 1... 1 1.1... 1 1.2... 2 1.3... 3 1.4... 4 1.5... 5 1.6... 6 1.7... 7 1.8... 8 1.9... 9 1.10...11 1.11...12 1.12...13 1.13...14 1.14...15 1.15...16

More information

untitled

untitled 20 31 5104258 1 1. p 2. p 2.1. p 2.2.i ppli Development Kit for JDK-4.0(FOMA) p 2.3. p 2.4. i p 3. p11 3.1. p12 3.2. IApplication RPG2 p12 3.3. RpgCnav p13 3.4. ScratchPad ImageMap MapData p14 4. p17 5.

More information