[apps] The code app runs Python code

Change-Id: I6034adeb368db2c5d3b64b16f8ad512750cd3bc0
This commit is contained in:
Romain Goyet
2017-08-04 18:25:33 +02:00
committed by Émilie Feral
parent c88b802516
commit 30471ede35
5 changed files with 76 additions and 75 deletions

View File

@@ -8,8 +8,8 @@ mp_obj_t kandinsky_color(mp_obj_t red, mp_obj_t green, mp_obj_t blue) {
MP_OBJ_NEW_SMALL_INT(
KDColor::RGB888(
mp_obj_get_int(red),
mp_obj_get_int(blue),
mp_obj_get_int(red)
mp_obj_get_int(green),
mp_obj_get_int(blue)
)
);
}