Color Oled(SSD1331) connect to STMicroelectronics Nucleo-F466

Dependencies:   ssd1331

Committer:
kadonotakashi
Date:
Thu Oct 11 02:27:46 2018 +0000
Revision:
3:f3764f852aa8
Parent:
0:8fdf9a60065b
Nucreo 446 + SSD1331 test version;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kadonotakashi 0:8fdf9a60065b 1 class Rpc{{name}} : public RPC {
kadonotakashi 0:8fdf9a60065b 2 public:
kadonotakashi 0:8fdf9a60065b 3 Rpc{{name}}({{cons_proto}}) : RPC(name), o({{cons_call}}) {}
kadonotakashi 0:8fdf9a60065b 4
kadonotakashi 0:8fdf9a60065b 5 {{methods}}
kadonotakashi 0:8fdf9a60065b 6
kadonotakashi 0:8fdf9a60065b 7 virtual const struct rpc_method *get_rpc_methods() {
kadonotakashi 0:8fdf9a60065b 8 static const rpc_method rpc_methods[] = {
kadonotakashi 0:8fdf9a60065b 9 {{rpc_methods}},
kadonotakashi 0:8fdf9a60065b 10 RPC_METHOD_SUPER(RPC)
kadonotakashi 0:8fdf9a60065b 11 };
kadonotakashi 0:8fdf9a60065b 12 return rpc_methods;
kadonotakashi 0:8fdf9a60065b 13 }
kadonotakashi 0:8fdf9a60065b 14 static struct rpc_class *get_rpc_class() {
kadonotakashi 0:8fdf9a60065b 15 static const rpc_function funcs[] = {
kadonotakashi 0:8fdf9a60065b 16 {"new", rpc_function_caller<const char*, {{cons_type}}, &RPC::construct<Rpc{{name}}, {{cons_type}}> >},
kadonotakashi 0:8fdf9a60065b 17 RPC_METHOD_END
kadonotakashi 0:8fdf9a60065b 18 };
kadonotakashi 0:8fdf9a60065b 19 static rpc_class c = {"{{name}}", funcs, NULL};
kadonotakashi 0:8fdf9a60065b 20 return &c;
kadonotakashi 0:8fdf9a60065b 21 }
kadonotakashi 0:8fdf9a60065b 22 private:
kadonotakashi 0:8fdf9a60065b 23 {{name}} o;
kadonotakashi 0:8fdf9a60065b 24 };