Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Defining Connectors()?

Featured Replies

I am attempting to write a simple EPIC USB program to test my rotary encoders. The board is set for Module 6. Under the devices.hpl I have written:connector(Rotary){ modrow(6,0);};When using Make I end up with an error about an incorrect module #. This only seems to work when specifying module 0. I am sure there must be some configuration setting somewhere that enables something higher then module 0 but I am not sure where it is located? If any of you know the trick (or even better where this is documented) please let me know.

  • 2 weeks later...

What kind of rotary encoder module are you using ? I am using the default one ftom R&R electronics that only works as module 7. This is the definition that I used ( and that works...)://=========================================================// Start of Connector MCPconn//=========================================================// Notes: This connector definition defines the modules// that are used by the MCP.//=========================================================connector(MCPconn){ modrow(7,0); // Rotary module (module 7) Scan Row 0 modrow(7,1); // Rotary module (module 7) Scan Row 1 modrow(1,4); // 64 button module Scan Row 4 modrow(1,0); // 64 button module Scan Row 0 modrow(1,1); // 64 button module Scan Row 1 modrow(1,2); // 64 button module Scan Row 2 };//=========================================================// End of Connector MCPconn//=========================================================//====================================================================// Module definition.//====================================================================definemodule(0,SLOWSCAN,0,16) // scan module 0 (first expansion module, A, B, RUDDER, and FLCS connectorsdefinemodule(1,SLOWSCAN,0,8) // 64 button moduledefinemodule(7,FASTSCAN,0,4) // rotary encoderdefinemodule(7,OUTPUT,0,4) // rotaryy encoderdefinemodule(0,OUTPUT,0,5)Hope this helps.Greetings Robert Kock

First, let me suggest you go to my website and download my manual on how to build a simulator using EPIC. In the manual, I try to explain EPL programming in more detail.http://members.cox.net/martin1jam/index.htmModule definition:---------------definemodule (2,1,0,16)//name, type, firstrow, number of rows//module 2, slowscan module, start row 0, end row 15---------------Note, you need to define a module before you can use it. Also, you can only have 16 fastscan rows total, so be careful with them. Device definition:--------------device(RotaryEncoder)//name of the device{connector(Mod2);//connector the device is attached tobutton(14,0,Rotary_Hdg);//button (row/bit) definitionsbutton(14,1,Rotary_Crs):};-----------------Button definition: void module.device.On/Off(void){code}------------------void RotaryEncoder.Rotary_Hdg.On(void){keyhit(A);//code to execute}void RotaryEncoder.Rotary_Hdg.Off(void){//code to execute}void RotaryEncoder.Rotary_Crs.On(void){//code to execute}void RotaryEncoder.Rotary_Crs.Off(void){//code to execute}--------------------If you want to see my EPIC Project, email from the address on the website above.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.