|
@@ -76,12 +76,13 @@
|
|
|
" self.is_light_off = not self.is_light_off\n",
|
|
|
" self.digital[MCSArduino.pin_LED_lights].write(self.is_light_off)\n",
|
|
|
" \n",
|
|
|
- " def feed(self):\n",
|
|
|
+ " def feed(self, n_pellets = 1):\n",
|
|
|
" self.digital[MCSArduino.pin_feeder_power].write(True)\n",
|
|
|
- " time.sleep(0.5)\n",
|
|
|
- " self.digital[MCSArduino.pin_feeder].write(True)\n",
|
|
|
- " time.sleep(0.02)\n",
|
|
|
- " self.digital[MCSArduino.pin_feeder].write(False)\n",
|
|
|
+ " for n in range(n_pellets):\n",
|
|
|
+ " time.sleep(0.5)\n",
|
|
|
+ " self.digital[MCSArduino.pin_feeder].write(True)\n",
|
|
|
+ " time.sleep(0.02)\n",
|
|
|
+ " self.digital[MCSArduino.pin_feeder].write(False)\n",
|
|
|
" time.sleep(1.5)\n",
|
|
|
" self.digital[MCSArduino.pin_feeder_power].write(False)\n",
|
|
|
" \n",
|
|
@@ -172,6 +173,7 @@
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
+ "attachments": {},
|
|
|
"cell_type": "markdown",
|
|
|
"id": "56d33a31",
|
|
|
"metadata": {},
|
|
@@ -309,6 +311,7 @@
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
+ "attachments": {},
|
|
|
"cell_type": "markdown",
|
|
|
"id": "ff6d72c0",
|
|
|
"metadata": {},
|
|
@@ -357,6 +360,7 @@
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
+ "attachments": {},
|
|
|
"cell_type": "markdown",
|
|
|
"id": "89b10d38",
|
|
|
"metadata": {},
|
|
@@ -410,6 +414,7 @@
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
+ "attachments": {},
|
|
|
"cell_type": "markdown",
|
|
|
"id": "e6df6e15",
|
|
|
"metadata": {},
|
|
@@ -576,6 +581,7 @@
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
+ "attachments": {},
|
|
|
"cell_type": "markdown",
|
|
|
"id": "fdb584fe",
|
|
|
"metadata": {},
|
|
@@ -671,6 +677,7 @@
|
|
|
"source": []
|
|
|
},
|
|
|
{
|
|
|
+ "attachments": {},
|
|
|
"cell_type": "markdown",
|
|
|
"id": "ae2fe188",
|
|
|
"metadata": {},
|