Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: Frog/Frog.cpp
- Revision:
- 31:70521f37e004
- Parent:
- 5:6e3afee7eac3
- Child:
- 39:8b09540724b3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Frog/Frog.cpp Sat May 16 04:15:46 2020 +0000
@@ -0,0 +1,16 @@
+#include "Frog.h"
+
+Serial pc(USBTX, USBRX);
+
+//every chicken object will accept x, y, and width (square)
+Frog::Frog(int x, int y, int width){
+ this->x = x;
+ this->y = y;
+ this->width = width;
+
+ left_side = x;
+ right_side = width + x;
+ up = y;
+ down = width + y;
+}
+