I recently installed the new FlowStone 2 demo, and I want to use this with my Axon 1 mcu. I wrote code to send the button state on the axon over uart1, and my axon is connected to COM3. When I run the program on FlowStone, I get nothing. Here is the axon code:
/****************************************************************************
*
* Copyright (c) 2008 [url=http://www.societyofrobots.com]www.societyofrobots.com[/url]
* (please link back if you use this code!)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Alternatively, this software may be distributed under the terms of BSD
* license.
*
****************************************************************************/
//Add your code here
#include <avr/delay.h>
//enter your code in control here
//photovore is just a default sample program and can be deleted
void control(void) {
int buttonpressed;
while(1) {
buttonpressed = button_pressed();
uart1SendByte(buttonpressed);
_delay_ms(10);
}}
I attached my flowstone file. Please help.