User Tools

Site Tools


acsim_console_c

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
acsim_console_c [2006/12/05 13:57] – added note-on event audiocommanderacsim_console_c [2007/11/17 16:46] (current) – Corrected zip file text smashtv
Line 3: Line 3:
 [[acsim_console_h|ACSim_console.h]]\\ [[acsim_console_h|ACSim_console.h]]\\
 **[[acsim_console_c|ACSim_console.c]]**\\ **[[acsim_console_c|ACSim_console.c]]**\\
- 
-[[acsim_toolbox_h|ACSim_toolbox.h]]\\ 
-[[acsim_toolbox_c|ACSim_toolbox.c]]\\ 
  
 [[acsim_mios_h|ACSim_mios.h]]\\ [[acsim_mios_h|ACSim_mios.h]]\\
 [[acsim_mios_c|ACSim_mios.c]]\\ [[acsim_mios_c|ACSim_mios.c]]\\
  
 +[[acsim_toolbox_h|ACSim_toolbox.h]]\\
 +[[acsim_toolbox_c|ACSim_toolbox.c]]\\
 +[[acmididefines|ACMidiDefines.h]]\\
 +\\
 +This code is for viewing only and may not be up to date. You can download the files in a zip file {{acsim:acsim.zip}}. If you make any updates, please send them to stryd_one and he will update the zip for you.
 +\\
 \\ \\
 <code c> <code c>
 /* /*
   ACSim_console.c   ACSim_console.c
-  v 0.0.5+  v 0.0.7
  *  *
   see header for version info and details   see header for version info and details
Line 60: Line 63:
  unsigned int value = 0;  unsigned int value = 0;
  unsigned int value2 = 0;  unsigned int value2 = 0;
 + // poll Timer()
 + if(debug_user_timer.TIMER_ENABLED) {
 + Timer();
 + }
 + // poll Tick()
 + Tick();
  // poll LCD_Display  // poll LCD_Display
  DISPLAY_Tick();  DISPLAY_Tick();
  // debug info  // debug info
  printf("\n\nMIOS.ACSim(%i) >> ", loopcount);  printf("\n\nMIOS.ACSim(%i) >> ", loopcount);
- // poll timer 
- Timer(); 
  // read input  // read input
  fgets(str, 32, stdin); // MAX chars = 32; this is NOT protected against buffer overflows!!!  fgets(str, 32, stdin); // MAX chars = 32; this is NOT protected against buffer overflows!!!
Line 101: Line 108:
  AIN_NotifyChange(pin, value);  AIN_NotifyChange(pin, value);
  }  }
 + break;
 +
 + case 'b': // System Realtime BYTE
 + debug_MIDI_byteNum = 0; // sending single byte, maybe without MIDI_START/_STOP
 + sscanf(str, "b%i", &pin);
 + MPROC_NotifyReceivedByte(pin);
 + debug_MIDI_byteNum = 0;
  break;  break;
   
Line 207: Line 221:
  Init();  Init();
  DISPLAY_Init();  DISPLAY_Init();
- Timer(); +
- +
  printf("\n");  printf("\n");
   
acsim_console_c.1165327044.txt.gz · Last modified: 2007/01/21 21:31 (external edit)