Ardpy API reference

연구/Ardpy 2016. 10. 23. 09:42

Ardpy : Arduino controlled by python

1. ardpy : python package

1.1 Ardpy class


name

action

property

addr

get/set i2c address

device_id

get device id number

num_funcs

get number of functions callable

max_arg_num

get maximum number of arguments

method

_set_arg(val, index=0, dtype=’byte)

set argument data

_exec_fucn(val)

execute function in arduino


1.2 Arduno class

1.3 Ledm class

1.4 Tlcd class


2. Ardpy : arduino library

2.1 public methods

method declaration

action

byte begin(byte addr, uint32_t dev_id = 0xffffffff)

void add_func( void (*func)(void) )

void set_max_arg_num(byte num)

int8_t   get_int8(byte index=0)
uint8_t  get_uint8(byte index=0)
uint8_t  get_byte(byte index=0)
int16_t  get_int16(byte index=0)
int16_t  get_int(byte index=0)
uint16_t get_uint16(byte index = 0)
int32_t  get_int32(byte index = 0)
uint32_t get_uint32(byte index = 0)
float    get_float(byte index = 0)
char*    get_str(byte index = 0)

void set_ret(int8_t)
void set_ret(uint8_t)
void set_ret(int16_t)
void set_ret(uint16_t)
void set_ret(int32_t)
void set_ret(uint32_t)
void set_ret(float)


'연구 > Ardpy' 카테고리의 다른 글

python3-smbus 와 아두이노간 통신 동작  (0) 2016.10.25
Ardpy API reference  (0) 2016.10.23
Ardpy examples  (0) 2016.10.23
Ardpy setup  (0) 2016.10.23
About Ardpy  (0) 2016.10.23
ardpy 개발 동기  (0) 2016.05.02
Posted by 살레시오

댓글을 달아 주세요