Skip to content

Instantly share code, notes, and snippets.

View JDW1's full-sized avatar

James Wages JDW1

  • KIRAMEK, INC.
  • Nissin-shi, Japan
View GitHub Profile
@JDW1
JDW1 / FW_CSSmenus_DropShadow.css
Last active March 10, 2017 00:30
CSS for Drop shadow behind Freeway Pro's CSS Menus
<style type="text/css">
/*===[ Navigation Menu Styling ]===*/
#fwNav1 .fwNavItem {min-width:100px}
#fwNav1 .sub {
-webkit-box-shadow: #333333 3px 4px 12px;
-moz-box-shadow: #333333 3px 4px 12px;
box-shadow: #333333 3px 4px 12px;
}
#fwNav1 ul.sub,
#fwNav1 ul.sub li.fwLastChild,
@JDW1
JDW1 / PIC16F18854_CWG_Setup.asm
Created August 2, 2017 00:31
PIC16F18854 CWG Setup Assembly Code
; ---------[ CWG Setup ]------------------------------------------
; The sequence below follows "20.12 Configuring the CWG" in the PIC16(L)F18854 datasheet:
; http://ww1.microchip.com/downloads/en/DeviceDoc/40001826B.pdf
; Configuring the CWG, Step-1
banksel TRISB ; [Bank 0]
movlw b'11111111' ; RB0 & RB1 are CWG Outputs but must be Inputs for now.
movwf TRISB ; PORTB
; Configuring the CWG, Steps-2&3
banksel CWG1CON0 ; [Bank 12]